[SSE mobile] Fix apply empty filter for tablet
This commit is contained in:
parent
25e31625b3
commit
d405993747
|
@ -104,21 +104,7 @@ define([
|
||||||
}
|
}
|
||||||
}).on('close', function (e) {
|
}).on('close', function (e) {
|
||||||
mainView.showNavbar();
|
mainView.showNavbar();
|
||||||
var isValid = true;
|
me.isValidChecked();
|
||||||
if (indChecked.length === indChecked.filter(function (item) {return item === false;}).length) {
|
|
||||||
isValid = false;
|
|
||||||
}
|
|
||||||
if(!isValid) {
|
|
||||||
uiApp.modal({
|
|
||||||
title : me.textErrorTitle,
|
|
||||||
text : me.textErrorMsg,
|
|
||||||
buttons: [
|
|
||||||
{
|
|
||||||
text: 'OK',
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}).on('closed', function () {
|
}).on('closed', function () {
|
||||||
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
|
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
|
||||||
me.api.asc_OnHideContextMenu()
|
me.api.asc_OnHideContextMenu()
|
||||||
|
@ -140,6 +126,9 @@ define([
|
||||||
var $target = $('#context-menu-target')
|
var $target = $('#context-menu-target')
|
||||||
.css({left: posX, top: Math.max(0, posY)});
|
.css({left: posX, top: Math.max(0, posY)});
|
||||||
modalView = uiApp.popover(popoverHTML, $target);
|
modalView = uiApp.popover(popoverHTML, $target);
|
||||||
|
$$(modalView).on('close', function (e) {
|
||||||
|
me.isValidChecked();
|
||||||
|
});
|
||||||
if (Common.SharedSettings.get('android')) {
|
if (Common.SharedSettings.get('android')) {
|
||||||
Common.Utils.androidMenuTop($(modalView), $target);
|
Common.Utils.androidMenuTop($(modalView), $target);
|
||||||
}
|
}
|
||||||
|
@ -161,6 +150,25 @@ define([
|
||||||
SSE.getController('Toolbar').getView('Toolbar').hideSearch();
|
SSE.getController('Toolbar').getView('Toolbar').hideSearch();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isValidChecked: function () {
|
||||||
|
var me = this,
|
||||||
|
isValid = true;
|
||||||
|
if (indChecked.length === indChecked.filter(function (item) {return item === false;}).length) {
|
||||||
|
isValid = false;
|
||||||
|
}
|
||||||
|
if(!isValid) {
|
||||||
|
uiApp.modal({
|
||||||
|
title : me.textErrorTitle,
|
||||||
|
text : me.textErrorMsg,
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
text: 'OK',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
rootView : function() {
|
rootView : function() {
|
||||||
return rootView;
|
return rootView;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue