mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
19 lines
483 B
JavaScript
19 lines
483 B
JavaScript
Template.registerHelper("fullApi", function () {
|
|
return Session.get("fullApi");
|
|
});
|
|
|
|
Template.basicOrFullSelect.events({
|
|
"change .basic-or-full": function (event) {
|
|
Session.set("fullApi", event.target.value === "full");
|
|
Iron.Location.go(Session.equals("fullApi", true) ? "/full" : "/basic");
|
|
}
|
|
});
|
|
|
|
Template.basicOrFullSelect.helpers({
|
|
isBasic: function () {
|
|
return ! Session.get("fullApi");
|
|
},
|
|
isFull: function () {
|
|
return Session.get("fullApi");
|
|
}
|
|
}); |