Progress and cleanup code
This commit is contained in:
@@ -14,7 +14,7 @@ if list.closed_at
|
||||
.display-field: App.CloseListButtonView content=list
|
||||
.row
|
||||
each user in list.users
|
||||
img.facebook-image src="http://graph.facebook.com/#{unbound user.facebook_id}/picture?type=square" alt="f"
|
||||
=user.facebook_image_tag
|
||||
if list.sorted_orders
|
||||
.list-orders-container
|
||||
each order in list.sorted_orders
|
||||
|
||||
@@ -55,14 +55,3 @@ App.SectionTableView = Ember.View.extend DragNDrop.Draggable,
|
||||
@$el.on 'click', =>
|
||||
# duplication of .table-actions because variable gets unshadowed
|
||||
@$('.table-actions').toggle() if @$el.hasClass('occupied') and not @get('controller.editmode')
|
||||
#@$el.qtip
|
||||
#content:
|
||||
#text: content
|
||||
#title: title.html()
|
||||
#style:
|
||||
#classes: 'qtip-wiki qtip-light qtip-shadow'
|
||||
#show: 'click'
|
||||
#hide:
|
||||
#fixed: true
|
||||
#delay: 500
|
||||
#prerender: true
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
//= require modernizr
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require jquery-ui/sortable
|
||||
//= require modernizr
|
||||
// require foundation FOUNDATION 5 JAVASCRIPT IMPLEMENTATIONS AND EMBER ARE NOT COMPATIBLE, FOUNDATION IS TOO SIMPLISTIC AT THE MOMENT AND DESTROYS DOM EVENTS
|
||||
//= require js-routes
|
||||
//= require moment
|
||||
//= require translations
|
||||
//= require qwaiter
|
||||
// require qwaiter
|
||||
//= require ./qsupplier
|
||||
//= require handlebars
|
||||
//= require faye
|
||||
//= require ./base
|
||||
//= require qtip
|
||||
// require qtip # was used for table actions in section view, now done by EMBER
|
||||
//= require pickdate
|
||||
//= require_directory .
|
||||
//= require_self
|
||||
//= require moment
|
||||
|
||||
var Qstorage = localStorage;
|
||||
|
||||
$.extend($translations.en, <%= I18n.t('supplier', locale: :en).to_json %>);
|
||||
$.extend($translations.nl, <%= I18n.t('supplier', locale: :nl).to_json %>);
|
||||
|
||||
String.prototype.capitalize = function() {
|
||||
return this.charAt(0).toUpperCase() + this.slice(1);
|
||||
}
|
||||
String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); }
|
||||
|
||||
window.time_zones = <%= ActiveSupport::TimeZone.all.map{|tz| {name: tz.name, formatted: "GMT#{tz.formatted_offset} #{tz.name}"}}.to_json.html_safe %>;
|
||||
window.countries = <%= IsoCountryCodes.all.map{|cc| {name: cc.name}}.to_json.html_safe %>;
|
||||
|
||||
@@ -41,7 +41,12 @@ function redirect_to(mapping, variables){
|
||||
window.location = path_mapping[mapping] + '?' + vars.join('&')
|
||||
}
|
||||
function currency(num) {
|
||||
return Qwaiter.currency(num);
|
||||
// num = 0.0 if isNaN(num) || num == '' || num == null
|
||||
// '€ ' + parseFloat(num).toFixed(2)
|
||||
if (isNaN(num) || num === '' || num === null) {
|
||||
num = 0.0;
|
||||
}
|
||||
return '€ ' + parseFloat(num).toFixed(2);
|
||||
}
|
||||
|
||||
Handlebars.registerHelper('t', function(tlocation) {
|
||||
|
||||
Reference in New Issue
Block a user