SrBuj 0.9.0alpha → 0.9.0alpha1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTdkZTUxYmU1ZDUzMWZkYmE4NDBmMjM2NzQxMmJmMzYzYWZjZDI5NA==
4
+ OGExNzBmYjcyZjhjYjM0ZjRjNjBlMTVmZWU1MGZhOWMwY2ZkOTlhYw==
5
5
  data.tar.gz: !binary |-
6
- ZmJkZGZhMmExZjU5MjBjYWUzNTkwODdhZDMzNjhlMzcyZTljZmQ4OQ==
6
+ YzM5YzcyN2NhMzg0NWUzZjc1ODBhMGMzMjk1NzRiODc3NTFhZGFhOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YWFmMDU1ODFmODM3ZWZkNmFlMDhjN2VmMjk4YTc4YTA5NjhlNGI2MzExY2Qy
10
- NzQzMmE5MmY1YTliOWQ5NDE5YTNmOWU3MzVmZTUzZmFjMGY4YzdkZjFkY2Q1
11
- NzRmODM1MDQ4NGExOTIzNThjYTAzYmExOGNjOGFkOGEyYjJhMDU=
9
+ OTg4ZTgzYzE1YjQ0MmM3NjRhOTk2YzE2ZGE2MjY3ZTFjMjg4Yjc4YjMzNTA5
10
+ NDRiMTdhMTM0MmVjMGJkNzUwYmMzMWFlMTEwNjc5YjQ3ZjY0MGE0YWMxMjE0
11
+ YzdiMjIzOTJkZGUwZWE0YWJhMWNhOTVhM2RmNGRlZTVhZjM0YjY=
12
12
  data.tar.gz: !binary |-
13
- NmEzMjU5OTM5ZTllYmU1MjUyYmYwZGZmNGU3OTBkOTQxYjhkODBkZGJmNjdk
14
- OWEwMjJjZWE5NzQ5NTg3Y2E0MTcwZmY3ZTM5ODM0NWUwZmM4MTkxM2RhMjY2
15
- YzlmYWFiMmFhYTEwOGFlZjlhZDI5MWQ4YjE4YTI1MTBkYzI4Njg=
13
+ ZTVjZWNjNjU1MWQ2MWMyZmEwMmFlYTk4ZDI4ZmFkYWQ2ODk4MWNiZmYyZDRl
14
+ NjRmODlmMmIzZWY4YjhmZjU3MjVlNDRiMDhmMDE0MjIxZTlhMTA1YTI5MTg5
15
+ YTJmMjg5NTUxYTUxMzIwODI1OGUxNDIyOTA3YjQwNzdhMTU1MmQ=
data/lib/SrBuj/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SrBuj
2
- VERSION = '0.9.0alpha'
2
+ VERSION = '0.9.0alpha1'
3
3
  end
@@ -19,7 +19,7 @@
19
19
  };
20
20
  var SrBuj;
21
21
  $.SrBuj = SrBuj = {
22
- version: '0.9.0alpha',
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
- } else {
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
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SrBuj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0alpha
4
+ version: 0.9.0alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gagoar