SrBuj 0.8.1 → 0.8.3

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
- NDZlZTQ2MmUzZWY1MTIzMzU4MGU5YWU5MTI4Mjc3YWZlNDFlZWQ3YQ==
4
+ MTYzOGI0MDI1OTViMWY4MDU1NDg4NDNhZTc0NzRkNTQ5YzllNTJhOA==
5
5
  data.tar.gz: !binary |-
6
- YjQ1Y2Q2MzZhN2FiNDdiM2U4MGQ5YWY0ZDVhMDI0N2QwNDg5MTY2ZQ==
6
+ YzllZjM2NTlkNGE2Y2I2OWZlOWU1NDVmOTJmOGY3NzVlZDlkNjYxNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2FmYzE3ZmQwYmEzNGRiMjNmMzYwOWJlZTQ2ZDA2ZjMwNDFhMWM5Yjc0ZDIx
10
- NzJjNzVlNDIyMGRiMGM5MWY3YjZmN2ZmYmQ2NmNjNzVjYzZhYWFiOWNmZmJl
11
- NTQ4MTNkNzY4MTFlOTBiZGNkNGUyYWJkNDU1N2QxYWUxMzk5ZjM=
9
+ MjQxOGQ2ZTNlYWY4OTNmMWFhZmE3ZTVmZTU0MmFiNDIyNzI1NmIxMTdmNTNk
10
+ MjYyMWQyMjc1ZjcxNzM5MTYwMTc0MGE0ZTA2NTNiZmQzODg4ZmMxYzFmYTkx
11
+ ZDA1Nzk1NjYwNTBhYWQ3NmQ5NTA3NmVmNWJiOTc1NjEzMDY5ODM=
12
12
  data.tar.gz: !binary |-
13
- ZmNjMjE3NmRiNzg4NTRlZmNiNDIwOTljMDRmMDY1MDk4MTE3ODE3MDA4YzZm
14
- MDdhOTA5MzUxOTI4Mjc2MTJiYzg3ZDcyMDMxMjJkY2JjNmQ2NDY4MzRlMmM5
15
- MDlkYTgxNGFiMmIyZThjMTMxYTY1NGE0NzYwMGFkZjIwNzYwNmY=
13
+ NTg2NmQ5NjE0MDliNDBkMmQ0NGZhZDgwOGNlZjZlMzM5NDUwYTg1ZjZhZmNj
14
+ MzZhZjExZmYyMmFmY2E4OTQxYTkxNWQ1NzQ4YjkwMDc3Mjk4N2E4YjRiMGUy
15
+ ZWU5OGY4ZjFiMzJjZWI3ZTYyNWJhYmMxMGIyMTIzOTU3ZTM5YmM=
data/lib/SrBuj/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SrBuj
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.3'
3
3
  end
@@ -19,7 +19,7 @@
19
19
  };
20
20
  var SrBuj;
21
21
  $.SrBuj = SrBuj = {
22
- version: '0.8.1',
22
+ version: '0.8.3',
23
23
  selector: '[data-remote][data-target]',
24
24
  defaults: {
25
25
  '$el': undefined,
@@ -103,13 +103,13 @@
103
103
  'onError': $el.data('error'),
104
104
  'callback': $el.data('callback'),
105
105
  'change': !($el.data('nochange') || false),
106
- 'jqueryselector': $el.data('jqueryselector'),
107
- 'modal': $el.data('modal'),
106
+ 'jqueryselector': $el.is('[data-jqueryselector]'),
107
+ 'modal': $el.is('[data-modal]'),
108
108
  'wrapper': $el.data('error'),
109
- 'custom': $el.data('custom'),
109
+ 'custom': $el.is('[data-custom]'),
110
110
  'replace': $el.data('replace'),
111
111
  'url': $.SrBuj.getUrl($el),
112
- 'push': $el.data('push'),
112
+ 'push': $el.is('[data-push]'),
113
113
  'remove': $el.is('[data-srbuj]')
114
114
  };
115
115
  user_options = user_options || {};
@@ -173,7 +173,7 @@
173
173
  },
174
174
  Util: {
175
175
  link: function (user_options){
176
- /*This function will create a link with options, trigger it and remove the link afterwards
176
+ /* This function will create a link with options, trigger it and remove the link afterwards
177
177
  * user_options must be a hash (Obj) with key: value without the data word
178
178
  * if the hash contain more keys, these will be integrated too as data-key form. Example:
179
179
  * { target: 'modal', error: 'modal', modal: true, href: '/admin/request'}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SrBuj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - gagoar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler