Disabled menu selection when not logged in.
[htsworkflow.git] / htsworkflow / frontend / static / js / htsw.js
index 40ddf09eff33020158bc3939fa360b519bb265c8..f2d04d080455f070630209dba8ad7846b61391c2 100644 (file)
@@ -239,7 +239,8 @@ $(document).ready(function(){
             } else {
                 tb.add({
                     text: div_id,
-                    handler: function() { goto_url(divobj.getAttribute('href')); }
+                    handler: function() { goto_url(divobj.getAttribute('href')); },
+                   disabled: (divobj.textContent == 'disabled') ? true : false 
                 });
             }
         });