Permalink
Browse files

trying to fix phonegap issue

  • Loading branch information...
1 parent 824457d commit 8d00bcd99ce183628f1e950356fff1682c34c07c @dealancer committed May 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 sma_mobile/js/main.js
View
5 sma_mobile/js/main.js
@@ -58,16 +58,21 @@ var AppRouter = Backbone.Router.extend({
},
showDialog: function(page) {
+ console.log('showDialog: 0');
$(page.el).attr('data-role', 'dialog');
+ console.log('showDialog: 1');
page.render();
+ console.log('showDialog: 2');
$('body').append($(page.el));
+ console.log('showDialog: 3');
$.mobile.changePage($(page.el), {
allowSamePageTransition: true,
reverse: false,
changeHash: false,
role: 'dialog',
transition: this.historyCount++ ? $.mobile.defaultDialogTransition : 'none',
});
+ console.log('showDialog: 4');
},
historyCount: 0,

0 comments on commit 8d00bcd

Please sign in to comment.