Explorar el Código

Fixed bug when back to table moves columns right

- bug only in chrome 68
- only with checkbox column
- fixed by change location not only rerender data in table when hit back to table
Piotr Labudda hace 7 años
padre
commit
b034e59825
Se han modificado 1 ficheros con 9 adiciones y 8 borrados
  1. 9 8
      SE/se-lib/TableAjax.php.init.js

+ 9 - 8
SE/se-lib/TableAjax.php.init.js

@@ -120,14 +120,15 @@ function tableAjaxRouter() {
 }
 
 function tableAjaxBackToTable() {
-	var cont = jQuery('#' + TABLE_AJAX_NODE_ID).parent();
-	cont.show();
-	var taskCont = jQuery('#' + TABLE_AJAX_NODE_ID + '_task').parent();
-	taskCont.remove();
-
-	// reload first page
-	var con = jQuery('#' + TABLE_AJAX_NODE_ID);
-	con.TableAjaxLoadPage();// TODO: load current page
+	window.location.href = window.location.pathname + window.location.search;
+	// var cont = jQuery('#' + TABLE_AJAX_NODE_ID).parent();
+	// cont.show();
+	// var taskCont = jQuery('#' + TABLE_AJAX_NODE_ID + '_task').parent();
+	// taskCont.remove();
+	//
+	// // reload first page
+	// var con = jQuery('#' + TABLE_AJAX_NODE_ID);
+	// con.TableAjaxLoadPage();// TODO: load current page
 }
 
 function tableAjaxCopy(args) {