Turns out you cannot delete multiple items for users yet.
---
src/app/views/users/index.haml | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/app/views/users/index.haml b/src/app/views/users/index.haml
index 41b0f0e..cd59734 100644
--- a/src/app/views/users/index.haml
+++ b/src/app/views/users/index.haml
@@ -47,13 +47,10 @@
var $checked = $("input[type='checkbox']:checked"),
$edit = $("dd.edit"),
$delete = $("dd.delete");
- if ($checked.length === 0) {
- //disable the edit and delete action if there is none selected
+ if ($checked.length != 1) {
+ //disable the edit and delete action if there is none or more than 1
selected
$edit.hide(200);
$delete.hide(200);
- } else if ($checked.length > 1) {
- $edit.hide(200);
- $delete.show(200);
} else {
$edit.show(200);
$delete.show(200);
--
1.7.2.3
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel