SrBuj 0.9.0alpha → 0.9.0alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/SrBuj/version.rb +1 -1
- data/lib/assets/javascripts/SrBuj.js +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGExNzBmYjcyZjhjYjM0ZjRjNjBlMTVmZWU1MGZhOWMwY2ZkOTlhYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzM5YzcyN2NhMzg0NWUzZjc1ODBhMGMzMjk1NzRiODc3NTFhZGFhOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTg4ZTgzYzE1YjQ0MmM3NjRhOTk2YzE2ZGE2MjY3ZTFjMjg4Yjc4YjMzNTA5
|
10
|
+
NDRiMTdhMTM0MmVjMGJkNzUwYmMzMWFlMTEwNjc5YjQ3ZjY0MGE0YWMxMjE0
|
11
|
+
YzdiMjIzOTJkZGUwZWE0YWJhMWNhOTVhM2RmNGRlZTVhZjM0YjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTVjZWNjNjU1MWQ2MWMyZmEwMmFlYTk4ZDI4ZmFkYWQ2ODk4MWNiZmYyZDRl
|
14
|
+
NjRmODlmMmIzZWY4YjhmZjU3MjVlNDRiMDhmMDE0MjIxZTlhMTA1YTI5MTg5
|
15
|
+
YTJmMjg5NTUxYTUxMzIwODI1OGUxNDIyOTA3YjQwNzdhMTU1MmQ=
|
data/lib/SrBuj/version.rb
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
};
|
20
20
|
var SrBuj;
|
21
21
|
$.SrBuj = SrBuj = {
|
22
|
-
version: '0.9.
|
22
|
+
version: '0.9.0alpha1',
|
23
23
|
selector: '[data-remote][data-target]',
|
24
24
|
notifyHeaders: { message: 'X-SRBUJ-MSG', type: 'X-SRBUJ-TYPE', side: 'X-SRBUJ-SIDE', position: 'X-SRBUJ-POS', time: 'X-SRBUJ-TIME' },
|
25
25
|
defaults: {
|
@@ -171,7 +171,13 @@
|
|
171
171
|
$error = jqueryselector ? $(error) : $(document.getElementById(error));
|
172
172
|
if (error) {
|
173
173
|
$.SrBuj.changeDom('ERROR', $error, data.responseText);
|
174
|
-
|
174
|
+
var notify = {};
|
175
|
+
for ( var attr in $.SrBuj.notifyHeaders )
|
176
|
+
if ( $.SrBuj.notifyHeaders.hasOwnProperty( attr ) ) {
|
177
|
+
notify[attr] = data.getResponseHeader( $.SrBuj.notifyHeaders[attr] );
|
178
|
+
}
|
179
|
+
if ( notify.message ){ $.SrBuj.Util.notify(notify) }
|
180
|
+
}else {
|
175
181
|
throw 'cant find data-error on element ' + e.target + ' maybe content_type missing on response?';
|
176
182
|
}
|
177
183
|
},
|