[ExercisePlanner] updated ExercisePlanner sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 6 Sep 2013 09:40:24 +0000 (11:40 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 6 Sep 2013 09:40:24 +0000 (11:40 +0200)
Change-Id: I05c128b40ac7bc13e0333ad59d79129b5d822bc4

js/UI.js

index be22e49..4edf079 100644 (file)
--- a/js/UI.js
+++ b/js/UI.js
@@ -52,9 +52,6 @@ function UI() {
                        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];
@@ -84,16 +81,6 @@ function UI() {
                });
        };
 
-       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');
        };