Request cleanup
This commit is contained in:
@@ -16,8 +16,6 @@ html lang="en"
|
||||
= javascript_include_tag "supplier/foundation1/application"
|
||||
= yield :head
|
||||
/= javascript_include_tag "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&language=#{I18n.locale}"
|
||||
javascript:
|
||||
supplier_id="#{current_supplier.id}";
|
||||
|
||||
body
|
||||
= render 'suppliers/application/top_menu'
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<script>
|
||||
var $locale = '<%= I18n.locale %>';
|
||||
var supplier_id = '<%= current_supplier.id %>';
|
||||
//var $locale = '<%= I18n.locale %>';
|
||||
//var supplier_id = '<%= current_supplier.id %>';
|
||||
var supplier_object=<%= SupplierSupplierSerializer.new(current_supplier).as_json(root: false).to_json.html_safe %>;
|
||||
var data_host = '';
|
||||
var event_host = '<%= Qwaiter.event_host %>';
|
||||
var datepicker_options = {dateFormat: 'yy-mm-dd', firstDay: <%= current_supplier.week_starts_on_monday? ? 1 : 0 %>};
|
||||
//var datepicker_options = {dateFormat: 'yy-mm-dd', firstDay: <%= current_supplier.week_starts_on_monday? ? 1 : 0 %>};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user