File tree Expand file tree Collapse file tree 6 files changed +22
-12
lines changed Expand file tree Collapse file tree 6 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1818 permissionsUrl : "/hosting/filemanager/item/permissions/set" ,
1919
2020 enablePermissionsModule : true ,
21+ enablePermissionsRecursive : true ,
2122 enableCompressChooseName : false ,
2223
2324 isEditableFilePattern : '\\.(txt|html|htm|aspx|asp|ini|pl|py|md|php|css|js|log|htaccess|htpasswd|json)$' ,
Original file line number Diff line number Diff line change 1010 date : model && new Date ( model . date ) ,
1111 perms : new Chmod ( model && model . rights ) ,
1212 content : '' ,
13+ recursive : false ,
1314 sizeKb : function ( ) {
1415 return Math . round ( this . size / 1024 , 1 ) ;
1516 } ,
266267 mode : "changepermissions" ,
267268 path : self . tempModel . fullPath ( ) ,
268269 perms : self . tempModel . perms . toOctal ( ) ,
269- permsCode : self . tempModel . perms . toCode ( )
270+ permsCode : self . tempModel . perms . toCode ( ) ,
271+ recursive : self . tempModel . recursive
270272 } } ;
271273 self . inprocess = true ;
272274 self . error = '' ;
Original file line number Diff line number Diff line change 7575 write : "Write" ,
7676 exec : "Exec" ,
7777 original : "Original" ,
78- changes : "Changes"
78+ changes : "Changes" ,
79+ recursive : "Recursive"
7980 } ) ;
8081
8182 $translateProvider . translations ( 'pt' , {
153154 write : "Gravável" ,
154155 exec : "Execução" ,
155156 original : "Original" ,
156- changes : "Mudanças"
157+ changes : "Mudanças" ,
158+ recursive : "Recursiva"
157159 } ) ;
158160
159161 $translateProvider . translations ( 'es' , {
231233 write : "Escritura" ,
232234 exec : "Ejecucion" ,
233235 original : "Original" ,
234- changes : "Cambios"
236+ changes : "Cambios" ,
237+ recursive : "Recursivo"
235238 } ) ;
236239 } ] ) ;
237240} ) ( ) ;
Original file line number Diff line number Diff line change 1010 </ thead >
1111 < tbody class ="file-item ">
1212 < tr data-ng-show ="fileNavigator.requesting ">
13- < td colspan ="4 ">
13+ < td colspan ="5 ">
1414 {{"loading" | translate}}...
1515 </ td >
1616 </ tr >
1717 < tr data-ng-show ="!fileNavigator.requesting && fileNavigator.fileList.length < 1 && !fileNavigator.error ">
18- < td colspan ="4 ">
18+ < td colspan ="5 ">
1919 {{"no_files_in_folder" | translate}}...
2020 </ td >
2121 </ tr >
2222 < tr data-ng-show ="!fileNavigator.requesting && fileNavigator.error ">
23- < td colspan ="4 ">
23+ < td colspan ="5 ">
2424 {{ fileNavigator.error }}
2525 </ td >
2626 </ tr >
Original file line number Diff line number Diff line change @@ -248,8 +248,7 @@ <h4 class="modal-title">{{"upload_file" | translate}}</h4>
248248 < h4 class ="modal-title "> {{'change_permissions' | translate}}</ h4 >
249249 </ div >
250250 < div class ="modal-body ">
251-
252- < table class ="table table-striped table-bordered table-hover ">
251+ < table class ="table table-striped table-bordered table-hover mb0 ">
253252 < thead >
254253 < tr >
255254 < th > {{'permissions' | translate}}</ th >
@@ -269,7 +268,12 @@ <h4 class="modal-title">{{'change_permissions' | translate}}</h4>
269268 </ tr >
270269 </ tbody >
271270 </ table >
272- < div class ="clearfix ">
271+ < div class ="checkbox " ng-show ="config.enablePermissionsRecursive && temp.model.type === 'dir' ">
272+ < label >
273+ < input type ="checkbox " ng-model ="temp.tempModel.recursive "> {{'recursive' | translate}}
274+ </ label >
275+ </ div >
276+ < div class ="clearfix mt10 ">
273277 < span class ="badge pull-left ">
274278 {{'original' | translate}}: {{temp.model.perms.toCode(temp.model.type === 'dir'?'d':'-')}} ({{temp.model.perms.toOctal()}})
275279 </ span >
@@ -281,7 +285,7 @@ <h4 class="modal-title">{{'change_permissions' | translate}}</h4>
281285 </ div >
282286 < div class ="modal-footer ">
283287 < button type ="button " class ="btn btn-sm btn-default " data-dismiss ="modal "> {{"cancel" | translate}}</ button >
284- < button class ="btn btn-sm btn-primary " data-ng-click =" changePermissions(temp) " data-ng-disabled =""> {{'change' | translate}}</ button >
288+ < button class ="btn btn-sm btn-primary " type =" submit " data-ng-disabled =""> {{'change' | translate}}</ button >
285289 </ div >
286290 </ form >
287291 </ div >
You can’t perform that action at this time.
0 commit comments