...
|
...
|
@@ -31,28 +31,9 @@ var colTxt = { |
|
|
|
|
|
var $saleReturn = $('#saleReturn');
|
|
|
|
|
|
Handlebars.registerHelper('if_cond', function(left, operator, right, options) {
|
|
|
switch (operator) {
|
|
|
case '==':
|
|
|
return (left == right) ? options.fn(this) : options.inverse(this); // eslint-disable-line
|
|
|
case '===':
|
|
|
return (left === right) ? options.fn(this) : options.inverse(this);
|
|
|
case '<':
|
|
|
return (left < right) ? options.fn(this) : options.inverse(this);
|
|
|
case '<=':
|
|
|
return (left <= right) ? options.fn(this) : options.inverse(this);
|
|
|
case '>':
|
|
|
return (left > right) ? options.fn(this) : options.inverse(this);
|
|
|
case '>=':
|
|
|
return (left >= right) ? options.fn(this) : options.inverse(this);
|
|
|
case '&&':
|
|
|
return (left && right) ? options.fn(this) : options.inverse(this);
|
|
|
case '||':
|
|
|
return (left || right) ? options.fn(this) : options.inverse(this);
|
|
|
default:
|
|
|
return options.inverse(this);
|
|
|
}
|
|
|
});
|
|
|
var tpl = require('coupon-big-list.hbs');
|
|
|
|
|
|
tpl({a:1,b:2});
|
|
|
|
|
|
bindEvent.add(function() {
|
|
|
var $imgShow = $('#img-show'),
|
...
|
...
|
|