Ver código fonte

[security] Support for history on HDFS

Enrico Berti 11 anos atrás
pai
commit
2013e3c
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      apps/security/src/security/templates/hdfs.mako

+ 4 - 0
apps/security/src/security/templates/hdfs.mako

@@ -300,6 +300,10 @@ ${ tree.import_templates(itemClick='$root.assist.setPath', itemDblClick='$root.a
       }
     });
 
+    window.onpopstate = function() {
+      viewModel.assist.path(window.location.hash.substr(1));
+    };
+
     function resetPathContainer() {
       $(".path-container").attr("style", "min-width: 190px");
       $(".acl-panel").attr("style", "min-width: 190px");