Commit 14fdcdd6 authored by Julia Radzhabova's avatar Julia Radzhabova

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

parent 6b400523
......@@ -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" />
......
......@@ -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;
......
......@@ -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" />
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment