Marvin
10/19/2022, 11:32 PM.toFixed(2)
.Steve Goldberg
10/20/2022, 10:33 AMMarvin
10/20/2022, 11:57 PMdefine("CAFB.EditOrder.CartDetails.View"
, [
"cafb_editorder_cart_details.tpl"
, "CAFB.EditOrder.Main.SS2Model"
, "Backbone"
, "Handlebars"
]
, function (
cafb_editorder_cart_details_tpl
, MainSS2Model
, Backbone
, Handlebars
) {
"use strict";
// @class CAFB.EditOrder.CartSummary.View @extends Backbone.View
return Backbone.View.extend({
template: cafb_editorder_cart_details_tpl
, initialize: function (options) {
Handlebars.registerHelper("currency", function (value) {
return parseFloat(value || "0").toFixed(2);
});
}
});
});
Steve Goldberg
10/21/2022, 10:33 AM