This is an automated email from the ASF dual-hosted git repository.

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git


The following commit(s) were added to refs/heads/develop by this push:
     new f4112def VCL-1150 - save user group filters in cookie so they persist 
across page loads
f4112def is described below

commit f4112deff7d789f2a9410165067b6dd636be7df0
Author: Josh Thompson <[email protected]>
AuthorDate: Thu Mar 7 16:35:44 2024 -0500

    VCL-1150 - save user group filters in cookie so they persist across page 
loads
    
    groups.js: modified setFiltersFromCookie: added check for GROUPFILTER 
cookie being null, and return if it is
---
 web/js/groups.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/web/js/groups.js b/web/js/groups.js
index 4543a39d..337f0850 100644
--- a/web/js/groups.js
+++ b/web/js/groups.js
@@ -282,6 +282,9 @@ function buildUserFilterStores() {
 
 function setFiltersFromCookie() {
        var tmp = dojo.cookie('GROUPFILTER');
+       if(typeof tmp == 'undefined') {
+               return;
+       }
        var data = tmp.split('|');
        dijit.byId('shownormal').set('value', 0);
        dijit.byId('showfederated').set('value', 0);

Reply via email to