includes/clientside/static/admin-menu.js
changeset 1046 cfc6c30c5e2d
parent 1023 5a282dbf8fad
child 1118 e26e74d80c15
equal deleted inserted replaced
1045:ce069a06906c 1046:cfc6c30c5e2d
    20  * Due to the unclear licensing conditions on this script, I contacted the author, who said that because Enano
    20  * Due to the unclear licensing conditions on this script, I contacted the author, who said that because Enano
    21  * is not a "competing product" I was allowed release the modified code as GPL. The conversation can be seen in the
    21  * is not a "competing product" I was allowed release the modified code as GPL. The conversation can be seen in the
    22  * licenses/tigra-menu.html document in the Enano distribution.
    22  * licenses/tigra-menu.html document in the Enano distribution.
    23  */
    23  */
    24 
    24 
    25 if ( typeof(readCookie) == 'function' )
    25 if ( /admin_menu_state=/.test(document.cookie) )
    26 {
    26 {
    27   var ck = readCookie('admin_menu_state');
    27   var ck = (String(document.cookie).match(/admin_menu_state=([0-9]+)/))[1];
    28   if(ck)
    28   if(ck)
    29   {
    29   {
    30     ck = parseInt(ck);
    30     ck = parseInt(ck);
    31   }
    31   }
    32   else
    32   else