[DE, PE] Реализовано открытие пустой правой панели во время загрузки документа. fix Bug 32119
This commit is contained in:
parent
6b400523ef
commit
14fdcdd66e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue