includes/clientside/static/admin-menu.js
changeset 1046 cfc6c30c5e2d
parent 1023 5a282dbf8fad
child 1118 e26e74d80c15
--- a/includes/clientside/static/admin-menu.js	Wed Jul 08 18:53:45 2009 -0400
+++ b/includes/clientside/static/admin-menu.js	Wed Jul 08 22:27:24 2009 -0400
@@ -22,9 +22,9 @@
  * licenses/tigra-menu.html document in the Enano distribution.
  */
 
-if ( typeof(readCookie) == 'function' )
+if ( /admin_menu_state=/.test(document.cookie) )
 {
-  var ck = readCookie('admin_menu_state');
+  var ck = (String(document.cookie).match(/admin_menu_state=([0-9]+)/))[1];
   if(ck)
   {
     ck = parseInt(ck);