[SSE mobile] Fix bug 42364
This commit is contained in:
parent
e21c97050c
commit
f4039727c3
|
@ -62,6 +62,7 @@ define([
|
||||||
'contextmenu:click': this.onTabMenu
|
'contextmenu:click': this.onTabMenu
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this._moreAction = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
events: function() {
|
events: function() {
|
||||||
|
@ -521,6 +522,25 @@ define([
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'ren': me.renameWorksheet(); break;
|
case 'ren': me.renameWorksheet(); break;
|
||||||
|
case 'showMore':
|
||||||
|
if (me._moreAction.length > 0) {
|
||||||
|
_.delay(function () {
|
||||||
|
_.each(me._moreAction, function (action) {
|
||||||
|
action.text = action.caption;
|
||||||
|
action.onClick = function () {
|
||||||
|
me.onTabMenu(null, action.event, model)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
uiApp.actions([me._moreAction, [
|
||||||
|
{
|
||||||
|
text: me.cancelButtonText,
|
||||||
|
bold: true
|
||||||
|
}
|
||||||
|
]]);
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
var _re = /reveal\:(\d+)/.exec(event);
|
var _re = /reveal\:(\d+)/.exec(event);
|
||||||
if ( _re && !!_re[1] ) {
|
if ( _re && !!_re[1] ) {
|
||||||
|
@ -532,7 +552,7 @@ define([
|
||||||
|
|
||||||
_getTabMenuItems: function(model) {
|
_getTabMenuItems: function(model) {
|
||||||
var wbLocked = this.api.asc_isWorkbookLocked();
|
var wbLocked = this.api.asc_isWorkbookLocked();
|
||||||
var shLocked = this.api.asc_isWorksheetLockedOrDeleted(model.get('index'));
|
var shLocked = this.api.asc_isWorksheetLockedOrDeleted(model.get('index'));
|
||||||
|
|
||||||
var items = [{
|
var items = [{
|
||||||
caption: this.menuDuplicate,
|
caption: this.menuDuplicate,
|
||||||
|
@ -560,6 +580,16 @@ define([
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Common.SharedSettings.get('phone') && items.length > 3) {
|
||||||
|
this._moreAction = items.slice(2);
|
||||||
|
|
||||||
|
items = items.slice(0, 2);
|
||||||
|
items.push({
|
||||||
|
caption: this.menuMore,
|
||||||
|
event: 'showMore'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -578,7 +608,8 @@ define([
|
||||||
strRenameSheet: 'Rename Sheet',
|
strRenameSheet: 'Rename Sheet',
|
||||||
strSheetName : 'Sheet Name',
|
strSheetName : 'Sheet Name',
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
notcriticalErrorTitle: 'Warning'
|
notcriticalErrorTitle: 'Warning',
|
||||||
|
menuMore: 'More'
|
||||||
|
|
||||||
}, SSE.Controllers.Statusbar || {}));
|
}, SSE.Controllers.Statusbar || {}));
|
||||||
});
|
});
|
|
@ -308,6 +308,7 @@
|
||||||
"SSE.Controllers.Statusbar.strSheetName": "Sheet Name",
|
"SSE.Controllers.Statusbar.strSheetName": "Sheet Name",
|
||||||
"SSE.Controllers.Statusbar.textExternalLink": "External Link",
|
"SSE.Controllers.Statusbar.textExternalLink": "External Link",
|
||||||
"SSE.Controllers.Statusbar.warnDeleteSheet": "The selected worksheets might contain data. Are you sure you want to proceed?",
|
"SSE.Controllers.Statusbar.warnDeleteSheet": "The selected worksheets might contain data. Are you sure you want to proceed?",
|
||||||
|
"SSE.Controllers.Statusbar.menuMore": "More",
|
||||||
"SSE.Controllers.Toolbar.dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
|
"SSE.Controllers.Toolbar.dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
|
||||||
"SSE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application",
|
"SSE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application",
|
||||||
"SSE.Controllers.Toolbar.leaveButtonText": "Leave this Page",
|
"SSE.Controllers.Toolbar.leaveButtonText": "Leave this Page",
|
||||||
|
|
Loading…
Reference in a new issue