Browse Source

HUE-5122 [fb] Enable back execute bit permission set for HDFS files

Romain Rigaux 9 years ago
parent
commit
8f985ad
1 changed files with 0 additions and 14 deletions
  1. 0 14
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

+ 0 - 14
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1318,15 +1318,11 @@ from django.utils.translation import ugettext as _
       self.changePermissions = function (data, event) {
         if (!self.isCurrentDirSentryManaged()) {
           var paths = [];
-          var allFileType = true;
 
           event.preventDefault();
           event.stopPropagation();
 
           $(self.selectedFiles()).each(function (index, file) {
-            if ("dir" == file.type) {
-              allFileType = false;
-            }
             paths.push(file.path);
           });
 
@@ -1351,16 +1347,6 @@ from django.utils.translation import ugettext as _
             }
             mode >>>= 1;
           }
-
-          if (allFileType) {
-            $("#chmodForm input[name='user_execute']").attr("disabled", "disabled");
-            $("#chmodForm input[name='group_execute']").attr("disabled", "disabled");
-            $("#chmodForm input[name='other_execute']").attr("disabled", "disabled");
-          } else {
-            $("#chmodForm input[name='user_execute']").removeAttr("disabled");
-            $("#chmodForm input[name='group_execute']").removeAttr("disabled");
-            $("#chmodForm input[name='other_execute']").removeAttr("disabled");
-          }
         }
       };