Test: reorder line with jquery

This commit is contained in:
Regis Houssin 2010-09-27 16:23:58 +00:00
parent b747767fce
commit ca85e8b577
3 changed files with 8 additions and 9 deletions

View File

@ -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";
}

View File

@ -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>

View File

@ -155,9 +155,6 @@ form {
margin: 0em 0em 0em 0em;
}
.dragHandle {
}
.dragClass {
background: #b3c5cc;
}