Collapse palette modules when palette-editor closed

This commit is contained in:
Nick O'Leary 2016-08-04 22:28:56 +01:00
parent 7220af3ef0
commit 12e302c10a
1 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,10 @@ RED.palette.editor = (function() {
$("#header-shade").hide();
$("#editor-shade").hide();
$("#sidebar-shade").hide();
$("#palette-editor").find('.expanded').each(function(i,el) {
$(el).find(".palette-module-content").slideUp();
$(el).removeClass('expanded');
});
}
function init() {