Sha256: 396c64ea642c2f6734fe58429ba49ab196ee27fd25392a5dd26d0943d2946ce7
Contents?: true
Size: 367 Bytes
Versions: 153
Compression:
Stored size: 367 Bytes
Contents
Spree.Views.Order.DetailsTotal = Backbone.View.extend({ initialize: function() { this.listenTo(this.model, "change", this.render); this.render() }, render: function() { var lineItemCount = this.model.get("line_items").length this.$el.toggleClass('hidden', !lineItemCount) this.$('.order-total').text(this.model.get("display_total")) } })
Version data entries
153 entries across 153 versions & 2 rubygems