Test: reorder line with jquery
This commit is contained in:
parent
b747767fce
commit
ca85e8b577
@ -1374,7 +1374,9 @@ class CommonObject
|
|||||||
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('ReductionShort').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('ReductionShort').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('TotalHTShort').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('TotalHTShort').'</td>';
|
||||||
print '<td width="48" colspan="3"> </td>';
|
print '<td width="10"> </td>';
|
||||||
|
print '<td width="10"> </td>';
|
||||||
|
print '<td width="10"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
/* jQuery(".imgup").hide(); */
|
jQuery(".imgup").hide();
|
||||||
/* jQuery(".imgdown").hide(); */
|
jQuery(".imgdown").hide();
|
||||||
jQuery(".lineupdown").removeAttr('href');
|
jQuery(".lineupdown").removeAttr('href');
|
||||||
jQuery("#objectline").tableDnD({
|
jQuery("#objectline").tableDnD({
|
||||||
onDrop: function(table, row) {
|
onDrop: function(table, row) {
|
||||||
@ -34,10 +34,10 @@ jQuery(document).ready(function(){
|
|||||||
},
|
},
|
||||||
dragHandle: "tdlineupdown"
|
dragHandle: "tdlineupdown"
|
||||||
});
|
});
|
||||||
jQuery(".tdlineupdown").hover(function() {
|
jQuery("#objectline tr").hover(function() {
|
||||||
jQuery(this).addClass('showDragHandle');
|
jQuery(this.cells[8]).addClass("showDragHandle");
|
||||||
}, function() {
|
}, function() {
|
||||||
jQuery(this).removeClass('showDragHandle');
|
jQuery(this.cells[8]).removeClass("showDragHandle");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -155,9 +155,6 @@ form {
|
|||||||
margin: 0em 0em 0em 0em;
|
margin: 0em 0em 0em 0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dragHandle {
|
|
||||||
}
|
|
||||||
|
|
||||||
.dragClass {
|
.dragClass {
|
||||||
background: #b3c5cc;
|
background: #b3c5cc;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user