Skip to content
Snippets Groups Projects
Commit ca85e8b5 authored by Regis Houssin's avatar Regis Houssin
Browse files

Test: reorder line with jquery

parent b747767f
No related branches found
No related tags found
No related merge requests found
......@@ -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">&nbsp;</td>';
print '<td width="10">&nbsp;</td>';
print '<td width="10">&nbsp;</td>';
print '<td width="10">&nbsp;</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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment