- IE 10+ (with classList polyfill)
- Chrome 31+
- Firefox 31+
<div id="mn-modal" class="mn-modal"></div>
define(['backbone.marionette', 'marionette.modal'], function (Marionette, Modal) {
// this is view will rendered inside modal dialog
var ChildView = Marionette.ItemView.extend({
template: '#awsum-template',
onSubmit: function () {
// do submit stuff ...
},
onReject: function () {
// do reject stuff ...
}
});
// Wow, modal!
Modal.add({ View: ChildView });
});