Commit 229d7110 authored by Julia Radzhabova's avatar Julia Radzhabova

[DE] Отладка панели с плагинами.

parent f45b7de7
...@@ -44,7 +44,8 @@ Common.Views = Common.Views || {}; ...@@ -44,7 +44,8 @@ Common.Views = Common.Views || {};
define([ define([
'common/main/lib/util/utils', 'common/main/lib/util/utils',
'common/main/lib/component/BaseView', 'common/main/lib/component/BaseView',
'common/main/lib/component/Layout' 'common/main/lib/component/Layout',
'common/main/lib/component/Window'
], function (template) { ], function (template) {
'use strict'; 'use strict';
...@@ -54,7 +55,7 @@ define([ ...@@ -54,7 +55,7 @@ define([
storePlugins: undefined, storePlugins: undefined,
template: _.template([ template: _.template([
'<div id="plugins-box" class="layout-ct vbox">', '<div id="plugins-box" class="layout-ct vbox">',
'<label style="font-weight: bold;"><%= scope.strPlugins %></label>', '<label id="plugins-header"><%= scope.strPlugins %></label>',
'<div id="plugins-list" class="">', '<div id="plugins-list" class="">',
'</div>', '</div>',
'</div>' '</div>'
......
#plugins-box { #plugins-box {
display: table;
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 10px;
#plugins-header {
position: absolute;
height: 20px;
left: 0;
top: 0;
font-weight: bold;
margin-top: 10px;
margin-left: 12px;
}
#plugins-list { #plugins-list {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
padding-top: 10px; padding: 30px 0 10px 10px;
.item-plugins { .item-plugins {
width: 40px; width: 40px;
......
...@@ -174,9 +174,10 @@ define([ ...@@ -174,9 +174,10 @@ define([
if (this.mode.canUseHistory) if (this.mode.canUseHistory)
this.leftMenu.setOptionsPanel('history', this.getApplication().getController('Common.Controllers.History').getView('Common.Views.History')); this.leftMenu.setOptionsPanel('history', this.getApplication().getController('Common.Controllers.History').getView('Common.Views.History'));
if (this.mode.canPlugins) if (this.mode.canPlugins) {
this.leftMenu.btnPlugins.show();
this.leftMenu.setOptionsPanel('plugins', this.getApplication().getController('Common.Controllers.Plugins').getView('Common.Views.Plugins')); this.leftMenu.setOptionsPanel('plugins', this.getApplication().getController('Common.Controllers.Plugins').getView('Common.Views.Plugins'));
else } else
this.leftMenu.btnPlugins.hide(); this.leftMenu.btnPlugins.hide();
Common.util.Shortcuts.resumeEvents(); Common.util.Shortcuts.resumeEvents();
...@@ -442,6 +443,7 @@ define([ ...@@ -442,6 +443,7 @@ define([
this.leftMenu.btnComments.setDisabled(true); this.leftMenu.btnComments.setDisabled(true);
this.leftMenu.btnChat.setDisabled(true); this.leftMenu.btnChat.setDisabled(true);
/** coauthoring end **/ /** coauthoring end **/
this.leftMenu.btnPlugins.setDisabled(true);
this.leftMenu.getMenu('file').setMode({isDisconnected: true}); this.leftMenu.getMenu('file').setMode({isDisconnected: true});
if ( this.dlgSearch ) { if ( this.dlgSearch ) {
...@@ -458,6 +460,7 @@ define([ ...@@ -458,6 +460,7 @@ define([
this.leftMenu.btnComments.setDisabled(disable); this.leftMenu.btnComments.setDisabled(disable);
this.leftMenu.btnChat.setDisabled(disable); this.leftMenu.btnChat.setDisabled(disable);
/** coauthoring end **/ /** coauthoring end **/
this.leftMenu.btnPlugins.setDisabled(disable);
if (disableFileMenu) this.leftMenu.getMenu('file').SetDisabled(disable); if (disableFileMenu) this.leftMenu.getMenu('file').SetDisabled(disable);
}, },
......
...@@ -1010,6 +1010,9 @@ define([ ...@@ -1010,6 +1010,9 @@ define([
var translateArt = new Asc.asc_TextArtTranslate(); var translateArt = new Asc.asc_TextArtTranslate();
translateArt.asc_setDefaultText(this.txtArt); translateArt.asc_setDefaultText(this.txtArt);
this.api.asc_setTextArtTranslate(translateArt); this.api.asc_setTextArtTranslate(translateArt);
if (this.appOptions.canPlugins)
this.updatePluginsList();
} }
}, },
...@@ -1088,8 +1091,6 @@ define([ ...@@ -1088,8 +1091,6 @@ define([
// Message on window close // Message on window close
window.onbeforeunload = _.bind(me.onBeforeUnload, me); window.onbeforeunload = _.bind(me.onBeforeUnload, me);
window.onunload = _.bind(me.onUnload, me); window.onunload = _.bind(me.onUnload, me);
me.updatePluginsList();
} }
}, },
......
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
<div id="left-panel-comments" class="" style="display: none;" /> <div id="left-panel-comments" class="" style="display: none;" />
<div id="left-panel-chat" class="" style="display: none;" /> <div id="left-panel-chat" class="" style="display: none;" />
<!-- /** coauthoring end **/ --> <!-- /** coauthoring end **/ -->
<div id="left-panel-plugins" class="" style="display: none;" /> <div id="left-panel-plugins" class="" style="display: none; height: 100%;" />
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -151,6 +151,7 @@ define([ ...@@ -151,6 +151,7 @@ define([
this.btnComments.hide(); this.btnComments.hide();
this.btnChat.hide(); this.btnChat.hide();
this.btnPlugins.hide();
this.btnComments.on('click', _.bind(this.onBtnMenuClick, this)); this.btnComments.on('click', _.bind(this.onBtnMenuClick, this));
this.btnChat.on('click', _.bind(this.onBtnMenuClick, this)); this.btnChat.on('click', _.bind(this.onBtnMenuClick, 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