Skip to content

Instantly share code, notes, and snippets.

@joshwcomeau
Created April 25, 2015 19:38
Show Gist options
  • Save joshwcomeau/dd4ada2a90cffe6af53c to your computer and use it in GitHub Desktop.
Save joshwcomeau/dd4ada2a90cffe6af53c to your computer and use it in GitHub Desktop.
Cat Controllers
// Cat Index Controller
window.reqKitControllers.catIndex = _.extend({}, window.reqKitControllers.application, {
emotionSelector: "#select-emotion",
initialize: function() {
this.populateEmotionsSelect(this.emotionSelector, " ", true);
}
});
// Cat New Controller
window.reqKitControllers.catNew = _.extend({}, window.reqKitControllers.application, {
emotionSelector: "#field-emotion",
initialize: function() {
this.populateEmotionsSelect(this.fieldEmotion, "select one", true);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment