add remote debugging

This commit is contained in:
2012-11-29 20:58:24 +01:00
parent d83b18fb3c
commit 68f3437f8d
+3 -1
View File
@@ -44,10 +44,12 @@ html lang="en"
setLocale: function(locale){$locale = locale; return locale},
token: function(){return this.auth_token},
setUserId: function(id){ this.stored_user_id = id},
user_id: function(){return this.stored_user_id }
user_id: function(){return this.stored_user_id },
log: function(str){console.log(str)}
});
#{Rails.env.production? ? '' : %|QMobile.setAuthToken('#{current_user.authentication_token}');QMobile.setUserId('#{current_user.id}');|}
QMobile.log('token: '+QMobile.authentication_string()+' user_id:'+QMobile.user_id()+' ====================================================================');
body class=action_name
.navbar.navbar-fixed-top