clipbucket/upload/admin_area/styles/cbv3/layout/functions.html
Arslan Hassan 5962836294 Added : template.php as template file
Added : function filters files replacing function hooks
Added : add_admin_menu a whole new function and replaced all existing functions with new
Added : New Admin Area with Bootstrap and new icons
Added : functions for widgets
Added : Sidebars and Widgets
2012-04-28 20:11:43 +00:00

27 lines
No EOL
744 B
HTML

<script>
$(document).ready(function()
{
$('.nav-sub-menu').each(function(){
var ref = $(this).attr('ref');
var cookie = $.cookie('menu-'+ref);
if(cookie!='show')
$(this).hide();
})
$('.nav-header').bind('click',function(){
var ref = $(this).attr('ref');
var obj = $('.nav-sub-menu[ref='+ref+']');
if(obj.css('display')=='none')
$.cookie('menu-'+ref,'show');
else
$.cookie('menu-'+ref,'hide');
obj.slideToggle('normal');
});
})
</script>