From 6b33a755ba4fb15adf8ba5c7649a771a0a724718 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Mar 2017 23:52:06 +0100 Subject: [PATCH] Add more log on tableDnD --- htdocs/core/tpl/ajaxrow.tpl.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/core/tpl/ajaxrow.tpl.php b/htdocs/core/tpl/ajaxrow.tpl.php index d0a7b45efea..61c27579b50 100644 --- a/htdocs/core/tpl/ajaxrow.tpl.php +++ b/htdocs/core/tpl/ajaxrow.tpl.php @@ -44,6 +44,7 @@ $(document).ready(function(){ $("#").tableDnD({ onDrop: function(table, row) { var reloadpage = ""; + console.log("tableDND onDrop"); console.log($("#").tableDnDSerialize()); var roworder = cleanSerialize($("#").tableDnDSerialize()); var table_element_line = ""; @@ -59,14 +60,15 @@ $(document).ready(function(){ filepath: filepath }, function() { + console.log("tableDND end of ajax call"); if (reloadpage == 1) { location.href = ''; } else { $("# .drag").each( function( intIndex ) { - $(this).removeClass("pair impair"); - if (intIndex % 2 == 0) $(this).addClass('impair'); - if (intIndex % 2 == 1) $(this).addClass('pair'); + // $(this).removeClass("pair impair"); + //if (intIndex % 2 == 0) $(this).addClass('impair'); + //if (intIndex % 2 == 1) $(this).addClass('pair'); }); } });