[DE mobile] Sailfish: show review menu
This commit is contained in:
parent
34699e233f
commit
07b22c2be0
|
@ -60,7 +60,8 @@ define([
|
||||||
_isEdit = false,
|
_isEdit = false,
|
||||||
_canAcceptChanges = false,
|
_canAcceptChanges = false,
|
||||||
_inRevisionChange = false,
|
_inRevisionChange = false,
|
||||||
_menuPos = [];
|
_menuPos = [],
|
||||||
|
_timer = 0;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
models: [],
|
models: [],
|
||||||
|
@ -153,10 +154,11 @@ define([
|
||||||
} else if ('review' == eventName) {
|
} else if ('review' == eventName) {
|
||||||
if (Common.SharedSettings.get('phone')) {
|
if (Common.SharedSettings.get('phone')) {
|
||||||
_actionSheets = me._initReviewMenu();
|
_actionSheets = me._initReviewMenu();
|
||||||
me.onContextMenuClick(view, 'showActionSheet');
|
me.onContextMenuClick(view, 'showActionSheet');
|
||||||
} else {
|
} else {
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
_view.showMenu(me._initReviewMenu(), _menuPos[0] || 0, _menuPos[1] || 0);
|
_view.showMenu(me._initReviewMenu(), _menuPos[0] || 0, _menuPos[1] || 0);
|
||||||
|
_timer = (new Date).getTime();
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
} else if ('showActionSheet' == eventName && _actionSheets.length > 0) {
|
} else if ('showActionSheet' == eventName && _actionSheets.length > 0) {
|
||||||
|
@ -190,6 +192,10 @@ define([
|
||||||
if ($('.popover.settings, .popup.settings, .picker-modal.settings, .modal.modal-in, .actions-modal').length > 0) {
|
if ($('.popover.settings, .popup.settings, .picker-modal.settings, .modal.modal-in, .actions-modal').length > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var now = (new Date).getTime();
|
||||||
|
if (now - _timer < 1000) return;
|
||||||
|
_timer = 0;
|
||||||
|
|
||||||
_menuPos = [posX, posY];
|
_menuPos = [posX, posY];
|
||||||
|
|
||||||
var me = this,
|
var me = this,
|
||||||
|
|
Loading…
Reference in a new issue