From db9a4250fa1144b699083fc8eccc85ef80c86fe7 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 Apr 2010 12:29:25 +0000 Subject: [PATCH] Updated sortableListing, it can now be used more than once on a single page git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17481 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_sortableListing.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index b88c0eae7..88a93bab8 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -62,7 +62,7 @@ class sortableListing { // Generate instance wide unique ID $tmp= gettimeofday(); - $this->id= 'l'.md5($tmp['sec']); + $this->id= 'l'.md5(microtime().$tmp['sec']); // Set reorderable flag $this->reorderable= $reorderable; @@ -291,7 +291,7 @@ class sortableListing { $result.= "\n"; $result.= " \n\n\n"; - $result.= " \n"; +# $result.= " \n"; $result.= " \n"; $result.= " \n"; @@ -319,7 +319,7 @@ class sortableListing { { // Do not do anything if this is not our PID, or there's even no PID available... if(!isset($_REQUEST['PID']) || $_REQUEST['PID'] != $this->id) { - return; +# return; } // Filter GET with "act" attributes @@ -345,7 +345,7 @@ class sortableListing { { // Do not do anything if this is not our PID, or there's even no PID available... if(!isset($_REQUEST['PID']) || $_REQUEST['PID'] != $this->id) { - return; +# return; } // Do not do anything if we're not posted - or have no permission -- 2.30.2