fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14904] jquery datatables: namespace state parameters


From: Sigurd Nes
Subject: [Fmsystem-commits] [14904] jquery datatables: namespace state parameters
Date: Thu, 07 Apr 2016 08:43:17 +0000

Revision: 14904
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14904
Author:   sigurdne
Date:     2016-04-07 08:43:16 +0000 (Thu, 07 Apr 2016)
Log Message:
-----------
jquery datatables: namespace state parameters

Modified Paths:
--------------
    trunk/phpgwapi/templates/base/datatable_jquery.xsl

Modified: trunk/phpgwapi/templates/base/datatable_jquery.xsl
===================================================================
--- trunk/phpgwapi/templates/base/datatable_jquery.xsl  2016-04-07 07:33:56 UTC 
(rev 14903)
+++ trunk/phpgwapi/templates/base/datatable_jquery.xsl  2016-04-07 08:43:16 UTC 
(rev 14904)
@@ -922,6 +922,25 @@
                        */
                        var table_url = 
JqueryPortico.parseURL(window.location.href);
                        var menuaction = 
table_url.searchObject.menuaction.replace(/\./g, '_');
+
+                       //uiocation
+                       if(typeof(table_url.searchObject.type_id) != 
'undefined')
+                       {
+                               menuaction += '_type_id' + 
table_url.searchObject.type_id;
+                       }
+
+                       //uientity
+                       if(typeof(table_url.searchObject.entity_id) != 
'undefined' && typeof(table_url.searchObject.cat_id) != 'undefined')
+                       {
+                               menuaction += '_entity_id' + 
table_url.searchObject.entity_id + '_cat_id' + table_url.searchObject.cat_id;
+                       }
+
+                       //uigeneric
+                       if(typeof(table_url.searchObject.type) != 'undefined' 
&& menuaction.search("uigeneric") > 0)
+                       {
+                               menuaction += '_type_' + 
table_url.searchObject.type;
+                       }
+
                        /*
                         * Find and assign actions to filters
                         */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]