Download File from UI broken after pagination. Contributed by Brahma Reddy Battula
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/bd5556ba Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/bd5556ba Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/bd5556ba Branch: refs/heads/HDFS-7240 Commit: bd5556ba124a5d9ec3e3f2041d96a2c445d69369 Parents: 20d389c Author: Ravi Prakash <[email protected]> Authored: Mon Mar 14 14:30:13 2016 -0700 Committer: Ravi Prakash <[email protected]> Committed: Mon Mar 14 14:30:13 2016 -0700 ---------------------------------------------------------------------- .../src/main/webapps/hdfs/explorer.js | 33 ++++++++++---------- 1 file changed, 17 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/bd5556ba/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js index baca798..102da9d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js @@ -281,21 +281,6 @@ dust.render('explorer', base.push(d), function(err, out) { $('#panel').html(out); - $('#table-explorer').dataTable( { - 'lengthMenu': [ [25, 50, 100, -1], [25, 50, 100, "All"] ], - 'columns': [ - {'searchable': false }, //Permissions - null, //Owner - null, //Group - { 'searchable': false, 'render': func_size_render}, //Size - { 'searchable': false, 'render': func_time_render}, //Last Modified - { 'searchable': false }, //Replication - null, //Block Size - null, //Name - { 'sortable' : false } //Trash - ], - "deferRender": true - }); $('.explorer-browse-links').click(function() { var type = $(this).attr('inode-type'); @@ -324,7 +309,23 @@ var inode_name = $(this).closest('tr').attr('inode-path'); var absolute_file_path = append_path(current_directory, inode_name); delete_path(inode_name, absolute_file_path); - }) + }); + + $('#table-explorer').dataTable( { + 'lengthMenu': [ [25, 50, 100, -1], [25, 50, 100, "All"] ], + 'columns': [ + {'searchable': false }, //Permissions + null, //Owner + null, //Group + { 'searchable': false, 'render': func_size_render}, //Size + { 'searchable': false, 'render': func_time_render}, //Last Modified + { 'searchable': false }, //Replication + null, //Block Size + null, //Name + { 'sortable' : false } //Trash + ], + "deferRender": true + }); }); }).error(network_error_handler(url)); }
