[ARVADOS] updated: b17d41c12a0d2a49864722204829a25aafe759e8

git at public.curoverse.com git at public.curoverse.com
Mon Nov 3 16:15:36 EST 2014


Summary of changes:
 apps/workbench/app/assets/javascripts/tab_panes.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

       via  b17d41c12a0d2a49864722204829a25aafe759e8 (commit)
      from  1693dc615e67c1bae3b6b52c0631fc58d8475d8f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b17d41c12a0d2a49864722204829a25aafe759e8
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Nov 3 16:15:31 2014 -0500

    4084: Only load tab on switch if it doesn't have "pane-loaded" class.  Increase
    default throttle to 15 sec instead of 3 (but refresh panels can set their own
    throttle time.)

diff --git a/apps/workbench/app/assets/javascripts/tab_panes.js b/apps/workbench/app/assets/javascripts/tab_panes.js
index 6356055..747fb9b 100644
--- a/apps/workbench/app/assets/javascripts/tab_panes.js
+++ b/apps/workbench/app/assets/javascripts/tab_panes.js
@@ -18,8 +18,10 @@ $(document).on('shown.bs.tab', '[data-toggle="tab"]', function(event) {
         a.addClass("active");
     });
 
-    // Now trigger reload of the newly shown tab pane.
-    $(event.target).trigger('arv:pane:reload');
+    if (!$(event.target).hasClass("pane-loaded")) {
+        // pane needs to be loaded
+        $(event.target).trigger('arv:pane:reload');
+    }
 });
 
 // Ask a refreshable pane to reload via ajax.
@@ -71,7 +73,7 @@ $(document).on('arv:pane:reload', function(e) {
 
     var throttle = $anchor.attr('data-load-throttle');
     if (!throttle) {
-        throttle = 3000;
+        throttle = 15000;
     }
     var now = (new Date()).getTime();
     var loaded_at = $anchor.attr('data-loaded-at');

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list