blacklight 6.16.0 → 6.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63001a68b4ad9bebe9b5d93dfcd5efc8b8e519353c9850d5ebfcb7c42128bab4
4
- data.tar.gz: ffc3ded7e79c7f50a8c5147ec3cf2df3d99cb6127b3febf154c456f10a6923a4
3
+ metadata.gz: ab78d68e30d49fcc8d4f8308d4340080a7697f604cc5face23c75fcdae3fea27
4
+ data.tar.gz: f9f0457f2d22cb0fdeba22fac2a89f7b88a525591052cf8d3fc7a965c9555d59
5
5
  SHA512:
6
- metadata.gz: 0d47c5102ac6643bf0e4d566a5640409b106f94acf3b51b4a8a75005809a7fbfa6e1b15eedb99d120129e18e0afbeaf106227747b0fee194da55687e23784177
7
- data.tar.gz: 9710b7761291373f725c866d8187e862be11053b50d84745442fb6acb9d826c0946a62f8f7fbae7cae7a8e32101b5eaf205ed7e7d2d7335257f512f2734a7e52
6
+ metadata.gz: a73b55d12488b47cfe7a5d511512806e2c03e157015697598ffb9c2bb9fe3a526b5cac56624089802ff7895381251ed8ae39e011a7076b47a713a3e3480ac803
7
+ data.tar.gz: 520745be6bb8458dc8fc050343f90f941b43d80f5c4e013bdc0f5d11f20009f4416fa92576c23a46f00a889f92737b2bee694ddda0137a37fe0bb741db6c88d8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.16.0
1
+ 6.17.0
@@ -23,6 +23,9 @@
23
23
  progress_label: "Saving...",
24
24
  //css_class is added to elements added, plus used for id base
25
25
  css_class: "toggle_my_kinda_form",
26
+ error: function() {
27
+ #optional callback
28
+ },
26
29
  success: function(after_success_check_state) {
27
30
  #optional callback
28
31
  }
@@ -96,9 +99,9 @@
96
99
  type: form.attr("method").toUpperCase(),
97
100
  data: form.serialize(),
98
101
  error: function() {
99
- alert("Error");
100
102
  label.removeAttr("disabled");
101
103
  checkbox.removeAttr("disabled");
104
+ options.error.call();
102
105
  },
103
106
  success: function(data, status, xhr) {
104
107
  //if app isn't running at all, xhr annoyingly
@@ -110,9 +113,9 @@
110
113
  checkbox.removeAttr("disabled");
111
114
  options.success.call(form, checked, xhr.responseJSON);
112
115
  } else {
113
- alert("Error");
114
116
  label.removeAttr("disabled");
115
117
  checkbox.removeAttr("disabled");
118
+ options.error.call();
116
119
  }
117
120
  }
118
121
  });
@@ -128,6 +131,9 @@
128
131
  $.fn.bl_checkbox_submit.defaults = {
129
132
  //css_class is added to elements added, plus used for id base
130
133
  css_class: "bl_checkbox_submit",
134
+ error: function() {
135
+ alert("Error");
136
+ },
131
137
  success: function() {} //callback
132
138
  };
133
139
  })(jQuery);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.16.0
4
+ version: 6.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2018-10-17 00:00:00.000000000 Z
20
+ date: 2018-11-06 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails