blacklight-spotlight 3.6.0.beta9 → 3.6.0.beta10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/spotlight.esm.js +6 -6
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +6 -6
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/javascript/spotlight/admin/users.js +6 -6
- data/lib/spotlight/version.rb +1 -1
- metadata +2 -2
@@ -5585,8 +5585,8 @@
|
|
5585
5585
|
function edit_user(event) {
|
5586
5586
|
event.preventDefault();
|
5587
5587
|
$(this).closest('tr').hide();
|
5588
|
-
id = $(this).attr('data-target');
|
5589
|
-
edit_view = $("[data-edit-for='"+id+"']", container).show();
|
5588
|
+
const id = $(this).attr('data-target');
|
5589
|
+
const edit_view = $("[data-edit-for='"+id+"']", container).show();
|
5590
5590
|
$.each(edit_view.find('input[type="text"], select'), function() {
|
5591
5591
|
// Cache original values incase editing is canceled
|
5592
5592
|
$(this).data('orig', $(this).val());
|
@@ -5595,8 +5595,8 @@
|
|
5595
5595
|
|
5596
5596
|
function cancel_edit(event) {
|
5597
5597
|
event.preventDefault();
|
5598
|
-
id = $(this).closest('tr').attr('data-edit-for');
|
5599
|
-
edit_view = $("[data-edit-for='"+id+"']", container).hide();
|
5598
|
+
const id = $(this).closest('tr').attr('data-edit-for');
|
5599
|
+
const edit_view = $("[data-edit-for='"+id+"']", container).hide();
|
5600
5600
|
clear_errors(edit_view);
|
5601
5601
|
rollback_changes(edit_view);
|
5602
5602
|
$("[data-show-for='"+id+"']", container).show();
|
@@ -5616,13 +5616,13 @@
|
|
5616
5616
|
}
|
5617
5617
|
|
5618
5618
|
function destroy_user(event) {
|
5619
|
-
id = $(this).attr('data-target');
|
5619
|
+
const id = $(this).attr('data-target');
|
5620
5620
|
$("[data-destroy-for='"+id+"']", container).val('1');
|
5621
5621
|
}
|
5622
5622
|
|
5623
5623
|
function new_user(event) {
|
5624
5624
|
event.preventDefault();
|
5625
|
-
edit_view = $("[data-edit-for='new']", container).show();
|
5625
|
+
const edit_view = $("[data-edit-for='new']", container).show();
|
5626
5626
|
$.each(edit_view.find('input[type="text"], select'), function() {
|
5627
5627
|
// Cache original values incase editing is canceled
|
5628
5628
|
$(this).data('orig', $(this).val());
|