You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by cr...@apache.org on 2014/08/26 21:09:27 UTC

git commit: SAMZA-290; refreshing yarn am keeps page now

Repository: incubator-samza
Updated Branches:
  refs/heads/master 4246137f6 -> cdd2ba7c0


SAMZA-290; refreshing yarn am keeps page now


Project: http://git-wip-us.apache.org/repos/asf/incubator-samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-samza/commit/cdd2ba7c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-samza/tree/cdd2ba7c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-samza/diff/cdd2ba7c

Branch: refs/heads/master
Commit: cdd2ba7c070d7054812f66cba67a157bae9689d3
Parents: 4246137
Author: David Chen <dc...@linkedin.com>
Authored: Tue Aug 26 12:09:19 2014 -0700
Committer: Chris Riccomini <cr...@criccomi-mn.linkedin.biz>
Committed: Tue Aug 26 12:09:19 2014 -0700

----------------------------------------------------------------------
 .../src/main/resources/scalate/WEB-INF/views/index.scaml  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/cdd2ba7c/samza-yarn/src/main/resources/scalate/WEB-INF/views/index.scaml
----------------------------------------------------------------------
diff --git a/samza-yarn/src/main/resources/scalate/WEB-INF/views/index.scaml b/samza-yarn/src/main/resources/scalate/WEB-INF/views/index.scaml
index 7b0077e..080b855 100644
--- a/samza-yarn/src/main/resources/scalate/WEB-INF/views/index.scaml
+++ b/samza-yarn/src/main/resources/scalate/WEB-INF/views/index.scaml
@@ -156,6 +156,15 @@
 
     :javascript
       $(document).ready(function() {
+        // Persist tabs.
+        if (location.hash !== '') {
+          $('a[href="' + location.hash + '"]').tab('show');
+        }
+        $('a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
+          return location.hash = $(e.target).attr('href').substr(1);
+        });
+
+        // Make tables sortable.
         $('#containers-table').tablesorter();
         $('#taskids-table').tablesorter();
         $('#config-table').tablesorter();
@@ -167,6 +176,7 @@
           }
         });
 
+        // Make config table searchable.
         $('#config-table-filter').keyup(function(e) {
           // Press ESC to exit search box.
           if (e.keyCode == 27) {