42 lines
1003 B
JavaScript
Raw Normal View History

2014-12-23 21:09:30 -05:00
Template.checkout.helpers({
chromebooks: function() {
return Chromebooks.find({}, {sort: {number: 1}});
2014-12-23 21:09:30 -05:00
}
});
2015-01-18 18:57:17 -05:00
Template.checkout.rendered = function() {
$(".chckChromebooks").mCustomScrollbar({
theme: 'dark',
2015-02-01 22:55:06 -05:00
scrollInertia: 10,
mouseWheel: { deltaFactor: 40 },
alwaysShowScrollbar: 2
2015-01-18 18:57:17 -05:00
});
}
Object.defineProperty(window, "console", {
value: console,
writable: false,
configurable: false
});
var i = 0;
function showWarningAndThrow() {
if (!i) {
setTimeout(function () {
console.log("%cWarning message", "font: 2em sans-serif; color: yellow; background-color: red;");
}, 1);
i = 1;
}
throw "Console is disabled";
}
var l, n = {
set: function (o) {
l = o;
},
get: function () {
showWarningAndThrow();
return l;
}
};
Object.defineProperty(console, "_commandLineAPI", n);
Object.defineProperty(console, "__commandLineAPI", n);