2014-12-23 21:09:30 -05:00
|
|
|
Template.checkout.helpers({
|
|
|
|
|
chromebooks: function() {
|
2015-01-28 21:37:43 -05:00
|
|
|
return Chromebooks.find({}, {sort: {number: 1}});
|
2014-12-23 21:09:30 -05:00
|
|
|
}
|
2015-01-01 00:57:53 -05:00
|
|
|
});
|
2015-01-18 18:57:17 -05:00
|
|
|
Template.checkout.rendered = function() {
|
|
|
|
|
|
|
|
|
|
$(".chckChromebooks").mCustomScrollbar({
|
2015-01-28 21:37:43 -05:00
|
|
|
theme: 'dark',
|
2015-02-01 22:55:06 -05:00
|
|
|
scrollInertia: 10,
|
2015-01-31 22:47:23 -05:00
|
|
|
mouseWheel: { deltaFactor: 40 },
|
|
|
|
|
alwaysShowScrollbar: 2
|
2015-01-18 18:57:17 -05:00
|
|
|
});
|
2015-02-06 21:28:29 -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);
|