2015-01-30 02:10:16 +00:00
|
|
|
'use strict';
|
2014-02-13 06:44:07 +00:00
|
|
|
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'vent',
|
|
|
|
'marionette',
|
|
|
|
'Mixins/AsModelBoundView',
|
2014-08-15 06:06:17 +00:00
|
|
|
'Mixins/AsValidatedView',
|
|
|
|
'Mixins/AsEditModalView'
|
|
|
|
], function (vent, Marionette, AsModelBoundView, AsValidatedView, AsEditModalView) {
|
2014-02-13 06:44:07 +00:00
|
|
|
|
|
|
|
var view = Marionette.ItemView.extend({
|
|
|
|
template: 'Settings/Metadata/MetadataEditViewTemplate',
|
|
|
|
|
2014-08-15 06:06:17 +00:00
|
|
|
_onAfterSave: function () {
|
|
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
2014-02-13 06:44:07 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
AsModelBoundView.call(view);
|
|
|
|
AsValidatedView.call(view);
|
2014-08-15 06:06:17 +00:00
|
|
|
AsEditModalView.call(view);
|
2014-02-13 06:44:07 +00:00
|
|
|
|
|
|
|
return view;
|
|
|
|
});
|