Fixed arrows down on init
This commit is contained in:
parent
32b7f36fe2
commit
b1819af066
@ -4,17 +4,20 @@ $(document).ready(function() {
|
|||||||
$('#pages-list ul.folder img.toggler').click(function(e) {
|
$('#pages-list ul.folder img.toggler').click(function(e) {
|
||||||
var toggler = $(this);
|
var toggler = $(this);
|
||||||
var children = toggler.parent().find('> ul.folder');
|
var children = toggler.parent().find('> ul.folder');
|
||||||
if (children.is(':visible')) {
|
|
||||||
children.slideUp('fast', function() {
|
children.each(function(){
|
||||||
toggler.attr('src', toggler.attr('src').replace('open', 'closed'));
|
if ($(this).is(':visible')) {
|
||||||
$.cookie(children.attr('id'), 'none');
|
$(this).slideUp('fast', function() {
|
||||||
});
|
toggler.attr('src', toggler.attr('src').replace('open', 'closed'));
|
||||||
} else {
|
$.cookie($(this).attr('id'), 'none');
|
||||||
children.slideDown('fast', function() {
|
});
|
||||||
toggler.attr('src', toggler.attr('src').replace('closed', 'open'));
|
} else {
|
||||||
$.cookie(children.attr('id'), 'block');
|
$(this).slideDown('fast', function() {
|
||||||
});
|
toggler.attr('src', toggler.attr('src').replace('closed', 'open'));
|
||||||
}
|
$.cookie($(this).attr('id'), 'block');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// sortable folder items
|
// sortable folder items
|
||||||
|
Loading…
Reference in New Issue
Block a user