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.
@@ -4,8 +4,8 @@ export default class {
4
4
  function edit_user(event) {
5
5
  event.preventDefault();
6
6
  $(this).closest('tr').hide();
7
- id = $(this).attr('data-target')
8
- edit_view = $("[data-edit-for='"+id+"']", container).show();
7
+ const id = $(this).attr('data-target')
8
+ const edit_view = $("[data-edit-for='"+id+"']", container).show();
9
9
  $.each(edit_view.find('input[type="text"], select'), function() {
10
10
  // Cache original values incase editing is canceled
11
11
  $(this).data('orig', $(this).val());
@@ -14,8 +14,8 @@ export default class {
14
14
 
15
15
  function cancel_edit(event) {
16
16
  event.preventDefault();
17
- id = $(this).closest('tr').attr('data-edit-for');
18
- edit_view = $("[data-edit-for='"+id+"']", container).hide();
17
+ const id = $(this).closest('tr').attr('data-edit-for');
18
+ const edit_view = $("[data-edit-for='"+id+"']", container).hide();
19
19
  clear_errors(edit_view);
20
20
  rollback_changes(edit_view);
21
21
  $("[data-show-for='"+id+"']", container).show();
@@ -35,13 +35,13 @@ export default class {
35
35
  }
36
36
 
37
37
  function destroy_user(event) {
38
- id = $(this).attr('data-target')
38
+ const id = $(this).attr('data-target')
39
39
  $("[data-destroy-for='"+id+"']", container).val('1');
40
40
  }
41
41
 
42
42
  function new_user(event) {
43
43
  event.preventDefault();
44
- edit_view = $("[data-edit-for='new']", container).show();
44
+ const edit_view = $("[data-edit-for='new']", container).show();
45
45
  $.each(edit_view.find('input[type="text"], select'), function() {
46
46
  // Cache original values incase editing is canceled
47
47
  $(this).data('orig', $(this).val());
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '3.6.0.beta9'
4
+ VERSION = '3.6.0.beta10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0.beta9
4
+ version: 3.6.0.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-07-25 00:00:00.000000000 Z
14
+ date: 2024-08-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status