Created
April 25, 2015 19:38
-
-
Save joshwcomeau/dd4ada2a90cffe6af53c to your computer and use it in GitHub Desktop.
Cat Controllers
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
// 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