@ -7,22 +7,32 @@ define(
'Rename/RenamePreviewCollection' ,
'Rename/RenamePreviewCollection' ,
'Rename/RenamePreviewCollectionView' ,
'Rename/RenamePreviewCollectionView' ,
'Rename/RenamePreviewEmptyCollectionView' ,
'Rename/RenamePreviewEmptyCollectionView' ,
'Rename/RenamePreviewFormatView' ,
'Shared/LoadingView' ,
'Shared/LoadingView' ,
'Commands/CommandController'
'Commands/CommandController'
] , function ( _ , vent , Marionette , RenamePreviewCollection , RenamePreviewCollectionView , EmptyCollectionView , LoadingView , CommandController ) {
] , function ( _ ,
vent ,
Marionette ,
RenamePreviewCollection ,
RenamePreviewCollectionView ,
EmptyCollectionView ,
RenamePreviewFormatView ,
LoadingView ,
CommandController ) {
return Marionette . Layout . extend ( {
return Marionette . Layout . extend ( {
className : 'modal-lg' ,
className : 'modal-lg' ,
template : 'Rename/RenamePreviewLayoutTemplate' ,
template : 'Rename/RenamePreviewLayoutTemplate' ,
regions : {
regions : {
renamePreviews : '#rename-previews'
renamePreviews : '#rename-previews' ,
formatRegion : '.x-format-region'
} ,
} ,
ui : {
ui : {
pathInfo : '.x-path-info' ,
pathInfo : '.x-path-info' ,
renameAll : '.x-rename-all' ,
renameAll : '.x-rename-all' ,
checkboxIcon : '.x-rename-all-button i'
checkboxIcon : '.x-rename-all-button i'
} ,
} ,
events : {
events : {
@ -47,6 +57,7 @@ define(
onRender : function ( ) {
onRender : function ( ) {
this . renamePreviews . show ( new LoadingView ( ) ) ;
this . renamePreviews . show ( new LoadingView ( ) ) ;
this . formatRegion . show ( new RenamePreviewFormatView ( { model : this . model } ) ) ;
} ,
} ,
_showPreviews : function ( ) {
_showPreviews : function ( ) {