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