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('ReductionShort').'</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";
|
||||
}
|
||||
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
/* jQuery(".imgup").hide(); */
|
||||
/* jQuery(".imgdown").hide(); */
|
||||
jQuery(".imgup").hide();
|
||||
jQuery(".imgdown").hide();
|
||||
jQuery(".lineupdown").removeAttr('href');
|
||||
jQuery("#objectline").tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
@ -34,10 +34,10 @@ jQuery(document).ready(function(){
|
||||
},
|
||||
dragHandle: "tdlineupdown"
|
||||
});
|
||||
jQuery(".tdlineupdown").hover(function() {
|
||||
jQuery(this).addClass('showDragHandle');
|
||||
jQuery("#objectline tr").hover(function() {
|
||||
jQuery(this.cells[8]).addClass("showDragHandle");
|
||||
}, function() {
|
||||
jQuery(this).removeClass('showDragHandle');
|
||||
jQuery(this.cells[8]).removeClass("showDragHandle");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -155,9 +155,6 @@ form {
|
||||
margin: 0em 0em 0em 0em;
|
||||
}
|
||||
|
||||
.dragHandle {
|
||||
}
|
||||
|
||||
.dragClass {
|
||||
background: #b3c5cc;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user