[-] MO : Blocklayered - Fix empty fancy box after template edit

This commit is contained in:
Jerome Nadaud
2013-10-04 10:14:07 +02:00
committed by gRoussac
parent 09ad15730b
commit 3d8591c588
+2 -3
View File
@@ -1940,7 +1940,7 @@ class BlockLayered extends Module
$(\'#error-treeview\').hide(); $(\'#error-treeview\').hide();
updElements(0, 0); updElements(0, 0);
}, },
\'onComplete\': function() { \'afterLoad\': function() {
lock_treeview_hidding = true; lock_treeview_hidding = true;
$(\'#categories-treeview\').parent().parent().show(); $(\'#categories-treeview\').parent().parent().show();
if($($(\'#categories-treeview li\')[0]).attr(\'cleaned\')) if($($(\'#categories-treeview li\')[0]).attr(\'cleaned\'))
@@ -1950,8 +1950,7 @@ class BlockLayered extends Module
$($(\'#categories-treeview li span\')[0]).trigger(\'click\'); $($(\'#categories-treeview li span\')[0]).trigger(\'click\');
$($(\'#categories-treeview li\')[0]).children(\'div\').remove(); $($(\'#categories-treeview li\')[0]).children(\'div\').remove();
$($(\'#categories-treeview li\')[0]). $($(\'#categories-treeview li\')[0]).
removeClass(\'collapsable lastCollapsable\'). removeClass(\'collapsable lastCollapsable\')
addClass(\'last static\');
$(\'.hitarea\').live(\'click\', function(it) $(\'.hitarea\').live(\'click\', function(it)
{ {
$(this).parent().find(\'> .category_label\').click(); $(this).parent().find(\'> .category_label\').click();