
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
27 lines
No EOL
744 B
HTML
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> |