Created
November 5, 2014 18:14
-
-
Save jelenajjo/ca487641a276725d0e23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Session.set('Ad Type', 'Banner'); | |
Template.myZones.helpers({ | |
webSites: function(){ | |
return Websites.find({userId: Meteor.userId()}); | |
}, | |
isBanner: function(){ | |
if(Session.get('Ad Type') == "Banner") | |
return true | |
}, | |
isMobile: function(){ | |
if(Session.get('Ad Type') == "Mobile Ads") | |
return true | |
}, | |
zones: function(){ | |
return Zones.find({userId: Meteor.userId()}); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment