From 086523359a60210cfec900e75b5821dbd47f1f6f Mon Sep 17 00:00:00 2001 From: Piotr Dabrowski
'
+ 'Default card is not defined yet!
'
@@ -540,6 +546,11 @@ App.Ui = null;
self.verticalCenter($('#startBox'));
}, 20);
});
+ $( "#contact-nfc-error" ).bind({
+ popupafterclose: function(){
+ tizen.application.getCurrentApplication().exit();
+ }
+ });
document.addEventListener('tizenhwkey', function(e) {
if (e.keyName == "back") {
@@ -551,6 +562,14 @@ App.Ui = null;
}
});
+ document.addEventListener('webkitvisibilitychange', function () {
+ if(document.webkitVisibilityState === "visible") {
+ if ($.mobile.activePage.attr('id') === "choose") {
+ $.mobile.activePage.trigger('pageshow');
+ }
+ }
+ });
+
$('#transfer').on('pageshow', function () {
if (tizen.nfc.getDefaultAdapter().powered) {
try {
--
2.7.4