Change-Id: I05c128b40ac7bc13e0333ad59d79129b5d822bc4
buttons = {'Cancel': function () { $("#popup").popup('close') }};
// to hide default button give {'Cancel': false} in callback
buttons = {'Cancel': function () { $("#popup").popup('close') }};
// to hide default button give {'Cancel': false} in callback
- // N_SE-49979 workaround to lock forbidden keys
- this.lockTabKey();
-
for (i in callback) {
if (callback.hasOwnProperty(i)) {
buttons[i] = callback[i];
for (i in callback) {
if (callback.hasOwnProperty(i)) {
buttons[i] = callback[i];
- UI.prototype.lockTabKey = function () {
- var key;
- $(document).on('keydown', function(event) {
- key = event.keyCode;
- if (key === 9 || key === 38 || key === 40) {
- event.preventDefault();
- }
- });
- };
-
UI.prototype.clearTabbars = function () {
$('[data-role = "tabbar"] li > a').removeClass('ui-focus, ui-btn-active');
};
UI.prototype.clearTabbars = function () {
$('[data-role = "tabbar"] li > a').removeClass('ui-focus, ui-btn-active');
};