New: Show naming format on rename preview

This commit is contained in:
Mark McDowall
2015-01-23 18:42:28 -08:00
parent b1871c1686
commit 50b843a422
5 changed files with 57 additions and 3 deletions
+14 -3
View File
@@ -7,22 +7,32 @@ define(
'Rename/RenamePreviewCollection',
'Rename/RenamePreviewCollectionView',
'Rename/RenamePreviewEmptyCollectionView',
'Rename/RenamePreviewFormatView',
'Shared/LoadingView',
'Commands/CommandController'
], function (_, vent, Marionette, RenamePreviewCollection, RenamePreviewCollectionView, EmptyCollectionView, LoadingView, CommandController) {
], function (_,
vent,
Marionette,
RenamePreviewCollection,
RenamePreviewCollectionView,
EmptyCollectionView,
RenamePreviewFormatView,
LoadingView,
CommandController) {
return Marionette.Layout.extend({
className : 'modal-lg',
template : 'Rename/RenamePreviewLayoutTemplate',
regions: {
renamePreviews : '#rename-previews'
renamePreviews : '#rename-previews',
formatRegion : '.x-format-region'
},
ui: {
pathInfo : '.x-path-info',
renameAll : '.x-rename-all',
checkboxIcon: '.x-rename-all-button i'
checkboxIcon : '.x-rename-all-button i'
},
events: {
@@ -47,6 +57,7 @@ define(
onRender: function() {
this.renamePreviews.show(new LoadingView());
this.formatRegion.show(new RenamePreviewFormatView({ model: this.model }));
},
_showPreviews: function () {