projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20259: Add documentation for banner and tooltip features
[arvados.git]
/
apps
/
workbench
/
app
/
assets
/
javascripts
/
selection.js.erb
diff --git
a/apps/workbench/app/assets/javascripts/selection.js.erb
b/apps/workbench/app/assets/javascripts/selection.js.erb
index f60bef7ddb432cda137c935f395b1a46abe997ad..e8f21eefd592fe1dcf4567f20ef5dc6a20ea515a 100644
(file)
--- a/
apps/workbench/app/assets/javascripts/selection.js.erb
+++ b/
apps/workbench/app/assets/javascripts/selection.js.erb
@@
-1,3
+1,7
@@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
//= require jquery
//= require jquery_ujs
//= require jquery
//= require jquery_ujs
@@
-81,6
+85,10
@@
function enable_disable_selection_actions() {
toggleClass('disabled',
($checked.length < 0) ||
!($checked.length > 0 && collection_lock_classes && collection_lock_classes.indexOf("fa-unlock") !=-1));
toggleClass('disabled',
($checked.length < 0) ||
!($checked.length > 0 && collection_lock_classes && collection_lock_classes.indexOf("fa-unlock") !=-1));
+ $('[data-selection-action=untrash-selected-items]', $container).
+ closest('li').
+ toggleClass('disabled',
+ ($checked.length < 1));
}
$(document).
}
$(document).