[ExercisePlanner] updated ExercisePlanner sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Wed, 31 Jul 2013 10:45:29 +0000 (12:45 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Wed, 31 Jul 2013 10:45:29 +0000 (12:45 +0200)
Change-Id: Iee3ae924300d87c4d43da938446012c22e506c6b

js/UI.js

index a623909..c4d672b 100644 (file)
--- a/js/UI.js
+++ b/js/UI.js
@@ -346,7 +346,9 @@ function UI() {
 
                document.addEventListener('tizenhwkey', function(e) {
                        if (e.keyName == 'back') {
-                               if ($.mobile.activePage.attr('id') === 'one') {
+                               if ($.mobile.popup.active) {
+                                       $.mobile.popup.active.close();
+                               } else if ($.mobile.activePage.attr('id') === 'one') {
                                        tizen.application.getCurrentApplication().exit();
                                } else {
                                        history.back();