Commit r2355: https://sourceforge.net/p/mrbs/code/2355/

------------------------------------------------------------------------
r2355 | cimorrison | 2012-07-25 16:35:16 +0100 (Wed, 25 Jul 2012) | 1 line
Changed paths:
   M /mrbs/trunk/web/js/general.js.php

Fixed JavaScript error when using an auth type other than 'db'
------------------------------------------------------------------------

Index: mrbs/trunk/web/js/general.js.php
===================================================================
--- mrbs/trunk/web/js/general.js.php    (revision 2354)
+++ mrbs/trunk/web/js/general.js.php    (revision 2355)
@@ -40,11 +40,12 @@
         value: '1'
       }).appendTo('#header_search');
       
-    var userList = $('#user_list_link');
-    href = userList.attr('href');
-    href += (href.indexOf('?') < 0) ? '?' : '&';
-    href += 'datatable=1';
-    userList.attr('href', href);
+    $('#user_list_link').each(function() {
+        var href = $(this).attr('href');
+        href += (href.indexOf('?') < 0) ? '?' : '&';
+        href += 'datatable=1';
+        $(this).attr('href', href);
+      });
   }
   
   <?php

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to