소스 검색

[security] Support for history on HDFS

Enrico Berti 11 년 전
부모
커밋
2013e3c809
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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");