From ca85e8b577b87edd904bb659903477774988189d Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Mon, 27 Sep 2010 16:23:58 +0000 Subject: [PATCH] Test: reorder line with jquery --- htdocs/core/class/commonobject.class.php | 4 +++- htdocs/core/tpl/ajaxrow.tpl.php | 10 +++++----- htdocs/theme/eldy/style.css.php | 3 --- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index bc114930e7a..114166e42b4 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -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"; } diff --git a/htdocs/core/tpl/ajaxrow.tpl.php b/htdocs/core/tpl/ajaxrow.tpl.php index f0b75716a60..0fc1e047b5a 100644 --- a/htdocs/core/tpl/ajaxrow.tpl.php +++ b/htdocs/core/tpl/ajaxrow.tpl.php @@ -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> diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index a692730ad6b..a637f57119d 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -155,9 +155,6 @@ form { margin: 0em 0em 0em 0em; } -.dragHandle { -} - .dragClass { background: #b3c5cc; } -- GitLab