move to evented mustache system

This commit is contained in:
2012-11-28 20:15:59 +01:00
parent 3da9dc68d7
commit 0fa0d1e0ba
31 changed files with 324 additions and 176 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ html lang="en"
link href="/favicon.ico" rel="shortcut icon"
javascript:
var data_host = '#{Rails.env == 'development' ? 'http://qwaiter.dev' : 'http://data.qwaiter.com' }';
//var data_host = 'http://localhost:3000';
var data_host = 'http://localhost:3000';
//data_host = 'http://192.168.1.148:3000';
var $locale = 'en';
var $url_vars = null;
+6
View File
@@ -11,11 +11,17 @@ html lang="en"
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "supplier/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"
link href="/images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
link href="/favicon.ico" rel="shortcut icon"
javascript:
var supplier_id = '#{current_supplier.id}';
var data_host = ''
= yield :head
body
+1 -7
View File
@@ -10,11 +10,5 @@
th.currency= t('supplier.active_lists.price')
th.actions
tbody
- content_for :footer do
javascript:
var active_lists_interval;
jQuery(function(){
Qsupplier.load_active_lists()
active_lists_interval = setInterval('Qsupplier.load_active_lists()', 7500);
});
script#active-list-template[type="text/html"]= render 'active_list.mustache'
+1 -7
View File
@@ -10,10 +10,4 @@
th.currency= t('supplier.active_orders.price')
th.actions
tbody
- content_for :footer do
javascript:
jQuery(function(){
Qsupplier.load_active_orders()
setInterval( 'Qsupplier.load_active_orders()', 7500);
});
script#active-order-template[type="text/html"]= render 'active_order.mustache'
+3
View File
@@ -17,4 +17,7 @@
linker.hide();
}
}).change();
Qsupplier.load_active_orders()
Qsupplier.load_active_lists()
Qsupplier.watch_events();
});
+6 -1
View File
@@ -3,7 +3,7 @@ dl.dl-horizontal
dt= List.human_attribute_name(:created_at)
dd= l @list.created_at, format: :short
.well
table#list-table.table
table#list-table.table.list-table
thead
tr
th= Order.model_name.human
@@ -12,6 +12,11 @@ dl.dl-horizontal
tr
td colspan=2 = slider_image
tfoot
tr
td
td.currency
strong.list-total
script#list-order-template[type="text/html"]= render 'supplier/list_order.mustache'
.form-actions
= link_to t("helpers.links.back"), suppliers_lists_path(date: @list.created_at.strftime('%Y-%m-%d')), class: 'btn'
'
+3 -2
View File
@@ -16,11 +16,12 @@
tr
td colspan=2 = slider_image
tfoot
script#active-list-orders-template[type="text/html"]= render 'active_list_orders.mustache'
script#active-list-order-template[type="text/html"]= render 'active_list_order.mustache'
script#active-list-orders-footer-template[type="text/html"]= render 'active_list_orders_footer.mustache'
- content_for :footer do
javascript:
jQuery(function(){
Quser.load_active_list();
setInterval( "Quser.load_active_list()", 7500);
Quser.watch_events();
//setInterval( "Quser.load_active_list()", 7500);
})
+4 -2
View File
@@ -2,10 +2,12 @@
dl.dl-horizontal
dt= List.human_attribute_name(:created_at)
dd.list-created-at
dt= List.human_attribute_name(:closed_at)
dd.list-closed-at
dt= Supplier.model_name.human
dd.supplier-name
.well
table#history-list-table.table
table#history-list-table.table.list-table
thead
tr
th= Order.model_name.human
@@ -14,7 +16,7 @@ dl.dl-horizontal
tr
td colspan=2 = slider_image
tfoot
script#active-list-orders-template[type="text/html"]= render 'active_list_orders.mustache'
script#active-list-order-template[type="text/html"]= render 'active_list_order.mustache'
script#active-list-orders-footer-template[type="text/html"]= render 'active_list_orders_footer.mustache'
- content_for :footer do
javascript:
+1 -1
View File
@@ -20,7 +20,7 @@ script#active-order-template[type="text/html"]= render 'active_order.mustache'
jQuery(function(){
Quser.handle_active_list(function(){
Quser.load_active_list_products();
setInterval('Quser.handle_active_list()', 7500);
Quser.watch_events();
})
})