commit
75a175b426
|
@ -125,7 +125,7 @@ define([
|
|||
|
||||
if (active && active.length > 0) {
|
||||
_.each(active, function(menu) {
|
||||
menu.hide();
|
||||
if (menu) menu.hide();
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -280,7 +280,7 @@ define([
|
|||
|
||||
var target_pane = $(".right-panel");
|
||||
target_pane.find('> .active').removeClass('active');
|
||||
_.each(this._settings, function(item){
|
||||
this._settings.forEach(function(item){
|
||||
if (item.btn.isActive())
|
||||
item.btn.toggle(false, true);
|
||||
});
|
||||
|
|
|
@ -154,8 +154,8 @@ require([
|
|||
'Main',
|
||||
'Common.Controllers.Fonts'
|
||||
/** coauthoring begin **/
|
||||
, 'Common.Controllers.Chat',
|
||||
'Common.Controllers.Comments',
|
||||
, 'Common.Controllers.Chat'
|
||||
,'Common.Controllers.Comments'
|
||||
/** coauthoring end **/
|
||||
,'Common.Controllers.Plugins'
|
||||
,'Common.Controllers.ExternalDiagramEditor'
|
||||
|
|
|
@ -277,7 +277,7 @@ define([
|
|||
clearSelection: function() {
|
||||
var target_pane = $(".right-panel");
|
||||
target_pane.find('> .active').removeClass('active');
|
||||
_.each(this._settings, function(item){
|
||||
this._settings.forEach(function(item){
|
||||
if (item.btn.isActive())
|
||||
item.btn.toggle(false, true);
|
||||
});
|
||||
|
|
|
@ -145,8 +145,8 @@ require([
|
|||
'Main',
|
||||
'Common.Controllers.Fonts'
|
||||
/** coauthoring begin **/
|
||||
, 'Common.Controllers.Chat',
|
||||
'Common.Controllers.Comments',
|
||||
, 'Common.Controllers.Chat'
|
||||
,'Common.Controllers.Comments'
|
||||
/** coauthoring end **/
|
||||
,'Common.Controllers.Plugins'
|
||||
,'Common.Controllers.ExternalDiagramEditor'
|
||||
|
|
|
@ -126,7 +126,7 @@ define([
|
|||
|
||||
if (this._state.prevDisabled != need_disable) {
|
||||
this._state.prevDisabled = need_disable;
|
||||
_.each(this._settings, function(item){
|
||||
this._settings.forEach(function(item){
|
||||
item.panel.setLocked(need_disable);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ define([
|
|||
clearSelection: function() {
|
||||
var target_pane = $(".right-panel");
|
||||
target_pane.find('> .active').removeClass('active');
|
||||
_.each(this._settings, function(item){
|
||||
this._settings.forEach(function(item){
|
||||
if (item.btn.isActive())
|
||||
item.btn.toggle(false, true);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue