3824: Merge branch 'master' into 3824-docker-fixes
[arvados.git] / apps / workbench / app / assets / javascripts / selection.js.erb
index 59e6425698b4825a50f306d742017eacac9218e6..40724bb566b4f8903687edfc9e2e69bf331d4ff4 100644 (file)
@@ -108,7 +108,8 @@ jQuery(function($){
             }
         });
 
-    $(window).on('load storage', update_count);
+    $(window).on('load', clear_selections);
+    $(window).on('storage', update_count);
 
     $('#selection-form-content').on("click", function(e) {
         e.stopPropagation();
@@ -183,7 +184,7 @@ function dispatch_selection_action() {
     }
     $(this).
         closest('.selection-action-container').
-        find(':checkbox:checked').
+        find(':checkbox:checked:visible').
         each(function() {
             data.push({name: param_name, value: $(this).val()});
         });