blacklight 6.16.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/checkbox_submit.js +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab78d68e30d49fcc8d4f8308d4340080a7697f604cc5face23c75fcdae3fea27
|
|
4
|
+
data.tar.gz: f9f0457f2d22cb0fdeba22fac2a89f7b88a525591052cf8d3fc7a965c9555d59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a73b55d12488b47cfe7a5d511512806e2c03e157015697598ffb9c2bb9fe3a526b5cac56624089802ff7895381251ed8ae39e011a7076b47a713a3e3480ac803
|
|
7
|
+
data.tar.gz: 520745be6bb8458dc8fc050343f90f941b43d80f5c4e013bdc0f5d11f20009f4416fa92576c23a46f00a889f92737b2bee694ddda0137a37fe0bb741db6c88d8
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
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.
|
|
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-
|
|
20
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
23
23
|
name: rails
|