[DE, PE] Реализовано открытие пустой правой панели во время загрузки документа. fix Bug 32119

This commit is contained in:
Julia Radzhabova 2016-05-25 10:44:18 +03:00
parent 6b400523ef
commit 14fdcdd66e
4 changed files with 20 additions and 2 deletions

View file

@ -16,6 +16,8 @@
</div>
<div id="id-textart-settings" class="settings-panel">
</div>
<div id="id-empty-settings" class="settings-panel">
</div>
</div>
<div class="tool-menu-btns">
<div class="ct-btn-category arrow-left" />

View file

@ -142,7 +142,9 @@ define([
this.trigger('render:before', this);
el.css('width', '40px');
var open = Common.localStorage.getItem("de-hide-right-settings");
open = (open===null || parseInt(open) == 0);
el.css('width', ((open) ? MENU_SCALE_PART : SCALE_MIN) + 'px');
el.show();
el.html(this.template({}));
@ -194,6 +196,11 @@ define([
});
}
if (open) {
$('#id-empty-settings').parent().css("display", "inline-block" );
$('#id-empty-settings').addClass("active");
}
this.trigger('render:after', this);
return this;

View file

@ -14,6 +14,8 @@
</div>
<div id="id-textart-settings" class="settings-panel">
</div>
<div id="id-empty-settings" class="settings-panel">
</div>
</div>
<div class="tool-menu-btns">
<div class="ct-btn-category arrow-left" />

View file

@ -141,7 +141,9 @@ define([
this.trigger('render:before', this);
el.css('width', '40px');
var open = Common.localStorage.getItem("pe-hide-right-settings");
open = (open===null || parseInt(open) == 0);
el.css('width', ((open) ? MENU_SCALE_PART : SCALE_MIN) + 'px');
el.show();
el.html(this.template({}));
@ -178,6 +180,11 @@ define([
});
}
if (open) {
$('#id-empty-settings').parent().css("display", "inline-block" );
$('#id-empty-settings').addClass("active");
}
this.trigger('render:after', this);
return this;