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
// Create a new object for custom validation of a custom field. | |
var nameSpaceController = Marionette.Object.extend( { | |
initialize: function() { | |
this.listenTo( nfRadio.channel( 'form' ), 'render:view', this.doCustomStuff ); | |
}, | |
doCustomStuff: function( view ) { | |
var formModel = view.model; // formModel will be a Backbone model with all of our form data. | |
var formID = formModel.get( 'id' ); // We can use .get( 'setting' ) get get any of our form settings. |
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
/* | |
* When our date picker loads, we want to modify some of picker settings. | |
* | |
* We want to: | |
* 1) Modify our month labels with a different string. | |
* 2) Disable specific dates so that they can't be selected. | |
* | |
* | |
* This object will listen to date pickers as they initialize so that we can modify settings. | |
*/ |
OlderNewer