first evented steps
This commit is contained in:
@@ -11,6 +11,7 @@ html lang="en"
|
||||
/[if lt IE 9]
|
||||
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
|
||||
= stylesheet_link_tag "user/application", :media => "all"
|
||||
= javascript_include_tag 'http://localhost:9292/faye.js'
|
||||
link href="/images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"
|
||||
link href="/images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"
|
||||
link href="/images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"
|
||||
@@ -31,6 +32,7 @@ html lang="en"
|
||||
authentication_string: function(){return this.authentication_string_storage || ''},
|
||||
authentication_object: function(){return this.authentication_object_storage || '{}'},
|
||||
setAuthToken: function(token){
|
||||
this.auth_token = token;
|
||||
this.authentication_string_storage = 'auth_token='+token;
|
||||
this.authentication_object_storage = '{"auth_token": "'+token+'"}'
|
||||
},
|
||||
@@ -39,9 +41,13 @@ html lang="en"
|
||||
goHome: function(){ redirect_to('user_root')},
|
||||
connection_problem: function(){alert('There is a problem connecting to the server')},
|
||||
locale: function(){ return $locale || ($locale = 'en')},
|
||||
setLocale: function(locale){$locale = locale; return locale}
|
||||
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 }
|
||||
});
|
||||
//QMobile.setAuthToken('i5brDZ1HS1okoEq3pMyh');
|
||||
QMobile.setAuthToken('#{current_user.authentication_token}');
|
||||
QMobile.setUserId('#{current_user.id}');
|
||||
|
||||
body class=action_name
|
||||
.navbar.navbar-fixed-top
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
- content_for :footer do
|
||||
javascript:
|
||||
$(function(){
|
||||
Quser.watch_events();
|
||||
Quser.home_loader();
|
||||
setInterval("Quser.home_loader()", 7500);
|
||||
//setInterval("Quser.home_loader()", 7500);
|
||||
});
|
||||
|
||||
@@ -7,25 +7,10 @@
|
||||
tbody
|
||||
tr
|
||||
td= slider_image
|
||||
table#active-order-table.table.hide
|
||||
thead
|
||||
tr
|
||||
th= Product.model_name.human
|
||||
th #
|
||||
th.currency Total
|
||||
th
|
||||
tbody
|
||||
tfoot
|
||||
tr
|
||||
td colspan=2
|
||||
button class="btn btn-primary" onClick="Quser.order_selected_products()" data-t="selected_products.order"= t('selected_products.order')
|
||||
|
|
||||
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" data-t="selected_products.clear"= t('selected_products.clear')
|
||||
td.currency
|
||||
strong#active-order-total
|
||||
td
|
||||
#active-order-container
|
||||
script#products-category-template[type="text/html"]= render 'products_category.mustache'
|
||||
script#products-category-for-order-template[type="text/html"]= render 'products_category_for_order.mustache'
|
||||
script#active-order-template[type="text/html"]= render 'active_order.mustache'
|
||||
- content_for :footer do
|
||||
javascript:
|
||||
jQuery(function(){
|
||||
|
||||
Reference in New Issue
Block a user