Merge branch 'release/v7.1.0' into develop
This commit is contained in:
commit
40061edafa
|
@ -287,6 +287,9 @@ define([
|
|||
this.popover = Common.Views.ReviewPopover.prototype.getPopover({
|
||||
reviewStore : this.popoverChanges,
|
||||
renderTo : this.sdkViewName,
|
||||
canRequestUsers: (this.appConfig) ? this.appConfig.canRequestUsers : undefined,
|
||||
canRequestSendNotify: (this.appConfig) ? this.appConfig.canRequestSendNotify : undefined,
|
||||
mentionShare: (this.appConfig) ? this.appConfig.mentionShare : true,
|
||||
api: this.api
|
||||
});
|
||||
this.popover.setReviewStore(this.popoverChanges);
|
||||
|
|
|
@ -82,7 +82,6 @@ define([
|
|||
mode: mode,
|
||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||
});
|
||||
|
||||
this.addListeners({
|
||||
'ViewTab': {
|
||||
'zoom:topage': _.bind(this.onBtnZoomTo, this, 'topage'),
|
||||
|
@ -128,6 +127,10 @@ define([
|
|||
})).then(function(){
|
||||
me.view.setEvents();
|
||||
|
||||
if (!Common.UI.Themes.available()) {
|
||||
me.view.btnInterfaceTheme.$el.closest('.group').remove();
|
||||
me.view.$el.find('.separator-theme').remove();
|
||||
}
|
||||
if (config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||
me.view.chStatusbar.$el.remove();
|
||||
var slotChkRulers = me.view.chRulers.$el,
|
||||
|
@ -153,30 +156,32 @@ define([
|
|||
me.view.turnNavigation(state);
|
||||
});
|
||||
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
}
|
||||
if (Common.UI.Themes.available()) {
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
}
|
||||
|
||||
if (menuItems.length) {
|
||||
me.view.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
me.view.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
Common.Utils.lockControls(Common.enumLock.inLightTheme, !Common.UI.Themes.isDarkTheme(), {array: [me.view.btnDarkDocument]});
|
||||
}, me));
|
||||
if (menuItems.length) {
|
||||
me.view.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
me.view.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
Common.Utils.lockControls(Common.enumLock.inLightTheme, !Common.UI.Themes.isDarkTheme(), {array: [me.view.btnDarkDocument]});
|
||||
}, me));
|
||||
|
||||
setTimeout(function () {
|
||||
me.onContentThemeChangedToDark(Common.UI.Themes.isContentThemeDark());
|
||||
Common.Utils.lockControls(Common.enumLock.inLightTheme, !Common.UI.Themes.isDarkTheme(), {array: [me.view.btnDarkDocument]});
|
||||
}, 0);
|
||||
setTimeout(function () {
|
||||
me.onContentThemeChangedToDark(Common.UI.Themes.isContentThemeDark());
|
||||
Common.Utils.lockControls(Common.enumLock.inLightTheme, !Common.UI.Themes.isDarkTheme(), {array: [me.view.btnDarkDocument]});
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -255,7 +260,7 @@ define([
|
|||
},
|
||||
|
||||
onThemeChanged: function () {
|
||||
if (this.view) {
|
||||
if (this.view && Common.UI.Themes.available()) {
|
||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||
if ( menu_item ) {
|
||||
|
|
|
@ -73,7 +73,7 @@ define([
|
|||
'<span class="btn-slot text x-huge" id="slot-btn-interface-theme"></span>' +
|
||||
'<span class="btn-slot text x-huge" id="slot-btn-dark-document"></span>' +
|
||||
'</div>' +
|
||||
'<div class="separator long"></div>' +
|
||||
'<div class="separator long separator-theme"></div>' +
|
||||
'<div class="group small">' +
|
||||
'<div class="elset">' +
|
||||
'<span class="btn-slot text" id="slot-chk-toolbar"></span>' +
|
||||
|
|
|
@ -255,8 +255,10 @@
|
|||
window.frameEditorId = params["frameEditorId"];
|
||||
window.parentOrigin = params["parentOrigin"];
|
||||
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
document.write('<script src="../../common/main/lib/util/fix-ie-compat.js"><\/script>');
|
||||
document.write('<script src="../../../../sdkjs/vendor/string.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
<script src="../../common/main/lib/util/themeinit.js"></script>
|
||||
|
||||
|
|
|
@ -85,7 +85,6 @@ define([
|
|||
mode: mode,
|
||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||
});
|
||||
|
||||
this.addListeners({
|
||||
'ViewTab': {
|
||||
'zoom:toslide': _.bind(this.onBtnZoomTo, this, 'toslide'),
|
||||
|
@ -152,6 +151,10 @@ define([
|
|||
})).then(function () {
|
||||
me.view.setEvents();
|
||||
|
||||
if (!Common.UI.Themes.available()) {
|
||||
me.view.btnInterfaceTheme.$el.closest('.group').remove();
|
||||
me.view.$el.find('.separator-theme').remove();
|
||||
}
|
||||
if (config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||
me.view.chStatusbar.$el.remove();
|
||||
|
||||
|
@ -173,24 +176,26 @@ define([
|
|||
.on('combo:blur', _.bind(me.onComboBlur, me, false));
|
||||
});
|
||||
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
}
|
||||
if (Common.UI.Themes.available()) {
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
}
|
||||
|
||||
if (menuItems.length) {
|
||||
this.view.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
this.view.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
}, this));
|
||||
if (menuItems.length) {
|
||||
this.view.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
this.view.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
}, this));
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -220,7 +225,7 @@ define([
|
|||
},
|
||||
|
||||
onThemeChanged: function () {
|
||||
if (this.view) {
|
||||
if (this.view && Common.UI.Themes.available()) {
|
||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||
if ( !!menu_item ) {
|
||||
|
|
|
@ -68,7 +68,7 @@ define([
|
|||
'<div class="group">' +
|
||||
'<span class="btn-slot text x-huge" id="slot-btn-interface-theme"></span>' +
|
||||
'</div>' +
|
||||
'<div class="separator long"></div>' +
|
||||
'<div class="separator long separator-theme"></div>' +
|
||||
'<div class="group small">' +
|
||||
'<div class="elset">' +
|
||||
'<span class="btn-slot text" id="slot-chk-notes"></span>' +
|
||||
|
|
|
@ -270,8 +270,10 @@
|
|||
window.frameEditorId = params["frameEditorId"];
|
||||
window.parentOrigin = params["parentOrigin"];
|
||||
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
document.write('<script src="../../common/main/lib/util/fix-ie-compat.js"><\/script>');
|
||||
document.write('<script src="../../../../sdkjs/vendor/string.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- debug begin -->
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
background-color: @highlight-button-pressed;
|
||||
|
||||
> a {
|
||||
color: @text-normal-pressed-ie;
|
||||
color: @text-normal-pressed;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,7 +84,6 @@ define([
|
|||
mode: mode,
|
||||
compactToolbar: this.toolbar.toolbar.isCompactView
|
||||
});
|
||||
|
||||
this.addListeners({
|
||||
'ViewTab': {
|
||||
'zoom:selected': _.bind(this.onSelectedZoomValue, this),
|
||||
|
@ -276,7 +275,7 @@ define([
|
|||
},
|
||||
|
||||
onThemeChanged: function () {
|
||||
if (this.view) {
|
||||
if (this.view && Common.UI.Themes.available()) {
|
||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||
if ( !!menu_item ) {
|
||||
|
|
|
@ -71,7 +71,7 @@ define([
|
|||
'<div class="group">' +
|
||||
'<span class="btn-slot text x-huge" id="slot-btn-interface-theme"></span>' +
|
||||
'</div>' +
|
||||
'<div class="separator long"></div>' +
|
||||
'<div class="separator long separator-theme"></div>' +
|
||||
'<div class="group sheet-freeze">' +
|
||||
'<span class="btn-slot text x-huge" id="slot-btn-freeze"></span>' +
|
||||
'</div>' +
|
||||
|
@ -307,7 +307,6 @@ define([
|
|||
dataHintOffset: 'small'
|
||||
});
|
||||
this.lockedControls.push(this.chToolbar);
|
||||
|
||||
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
||||
},
|
||||
|
||||
|
@ -385,6 +384,11 @@ define([
|
|||
me.toolbar && me.toolbar.$el.find('.group.sheet-gridlines').hide();
|
||||
}
|
||||
|
||||
if (!Common.UI.Themes.available()) {
|
||||
me.btnInterfaceTheme.$el.closest('.group').remove();
|
||||
me.$el.find('.separator-theme').remove();
|
||||
}
|
||||
|
||||
if (config.canBrandingExt && config.customization && config.customization.statusBar === false || !Common.UI.LayoutManager.isElementVisible('statusBar')) {
|
||||
me.chStatusbar.$el.remove();
|
||||
if (!config.isEdit) {
|
||||
|
@ -396,26 +400,26 @@ define([
|
|||
me.$el.find('.separator-formula').remove();
|
||||
}
|
||||
}
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
if (Common.UI.Themes.available()) {
|
||||
var menuItems = [],
|
||||
currentTheme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId();
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
menuItems.push({
|
||||
value: t,
|
||||
caption: Common.UI.Themes.get(t).text,
|
||||
checked: t === currentTheme,
|
||||
checkable: true,
|
||||
toggleGroup: 'interface-theme'
|
||||
});
|
||||
}
|
||||
if (menuItems.length) {
|
||||
me.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
me.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
}, me));
|
||||
}
|
||||
}
|
||||
|
||||
if (menuItems.length) {
|
||||
me.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems}));
|
||||
me.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) {
|
||||
var value = item.value;
|
||||
Common.UI.Themes.setTheme(value);
|
||||
}, me));
|
||||
}
|
||||
|
||||
setEvents.call(me);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -278,8 +278,10 @@
|
|||
window.frameEditorId = params["frameEditorId"];
|
||||
window.parentOrigin = params["parentOrigin"];
|
||||
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
document.write('<script src="../../common/main/lib/util/fix-ie-compat.js"><\/script>');
|
||||
document.write('<script src="../../../../sdkjs/vendor/string.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../../sdkjs/cell/css/main.css"/>
|
||||
|
|
|
@ -117,6 +117,7 @@
|
|||
background-color: @highlight-button-pressed;
|
||||
|
||||
> a {
|
||||
color: @text-normal-pressed-ie;
|
||||
color: @text-normal-pressed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue