[ARVADOS] updated: 210d762a82c4fe3a2445c641513188fce07436e6

git at public.curoverse.com git at public.curoverse.com
Wed Sep 17 12:24:29 EDT 2014


Summary of changes:
 apps/workbench/app/assets/javascripts/tab_panes.js    | 2 +-
 apps/workbench/app/views/application/destroy.js.erb   | 1 +
 apps/workbench/app/views/projects/remove_items.js.erb | 7 ++++---
 3 files changed, 6 insertions(+), 4 deletions(-)

       via  210d762a82c4fe3a2445c641513188fce07436e6 (commit)
      from  db9ccbd2fab6edf279408a6869a2cf2409d5f335 (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 210d762a82c4fe3a2445c641513188fce07436e6
Author: Phil Hodgson <bitbucket at philhodgson.net>
Date:   Wed Sep 17 12:24:26 2014 -0400

    3338: add a 'count-change' event that the tab panes listen for, and trigger it from destroy actions

diff --git a/apps/workbench/app/assets/javascripts/tab_panes.js b/apps/workbench/app/assets/javascripts/tab_panes.js
index 22d6de1..ea17f6c 100644
--- a/apps/workbench/app/assets/javascripts/tab_panes.js
+++ b/apps/workbench/app/assets/javascripts/tab_panes.js
@@ -77,7 +77,7 @@ $(document).on('arv-log-event arv:pane:reload:all', function() {
 });
 
 // If there is a 'tab counts url' in the nav-tabs element then use it to get some javascript that will update them
-$(document).on('ready', function() {
+$(document).on('ready count-change', function() {
     var tabCountsUrl = $('ul.nav-tabs').data('tab-counts-url');
     if( tabCountsUrl && tabCountsUrl.length ) {
         $.get( tabCountsUrl );
diff --git a/apps/workbench/app/views/application/destroy.js.erb b/apps/workbench/app/views/application/destroy.js.erb
index 05b2c3e..5309a8b 100644
--- a/apps/workbench/app/views/application/destroy.js.erb
+++ b/apps/workbench/app/views/application/destroy.js.erb
@@ -1,3 +1,4 @@
+$(document).trigger('count-change');
 $('[data-object-uuid=<%= @object.uuid %>]').hide('slow', function() {
     $(this).remove();
 });
diff --git a/apps/workbench/app/views/projects/remove_items.js.erb b/apps/workbench/app/views/projects/remove_items.js.erb
index 5444cbe..664bd51 100644
--- a/apps/workbench/app/views/projects/remove_items.js.erb
+++ b/apps/workbench/app/views/projects/remove_items.js.erb
@@ -1,5 +1,6 @@
+$(document).trigger('count-change');
 <% @removed_uuids.each do |uuid| %>
-$('[data-object-uuid=<%= uuid %>]').hide('slow', function() {
-    $(this).remove();
-});
+	$('[data-object-uuid=<%= uuid %>]').hide('slow', function() {
+	    $(this).remove();
+	});
 <% end %>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list