jqr-helpers 1.0.47 → 1.0.48

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWZjMWYyZWNkMWZiMGE2NWYwYWM5ZDY1YzhlODVkYWI5NmI3NjM3OQ==
4
+ ZTRkYzE0OTU3NDg4ZmM2Zjg2NzNhZDg0MTViYzkyMWRmMTU5MGU5Nw==
5
5
  data.tar.gz: !binary |-
6
- NmZkZmIyNDBjZmRhNWUyMjg4MzM1MDhlYjMyODJkY2UzYmQ0NzZjOQ==
6
+ MjlmOTcwOWNiZmEwYWVlM2MzZjllMWIzMTQ0ZjhjMTA4NTg4OWU0MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWQwNGIwMDI3MTY1ZTQzNDNiMjQzMDMyNDJmYTk5Y2ViMDc1NTAwMGQ0MmU2
10
- ZWM2ZmNkZWJmNTNiMjRhYzJkODk4MWJhNTBhMGM1N2UzZTI5MzRlYWE4ZmZm
11
- Y2U3MWZmMmJhYTIwNGUwZmY0ODYxMTc3Nzc4MjViOWVlOGMyNDg=
9
+ NTBiNDIzYzQ0Nzc4MzEzMzJmOWRiNzU3ODM1NDk1ZmYzMTQ1MmRmODdmN2U4
10
+ N2M3NjE4NTAxN2U1YTM4OGIyZWYzMmRkYzVkNTE4MzUwOTVkYTk4N2RmYTFl
11
+ MWZlYTI5YTcyZjg4ZTE4YjViZDA3OWMzYmY3NDA4ZTQ3NzQ4ZjQ=
12
12
  data.tar.gz: !binary |-
13
- M2RjNTE5OTA0M2RiY2IyNmE1OGYzZGUzYTU4MzBkNjcyMDQ4MGY1MjYyYzU4
14
- OTE4M2I0YzYwMzRiOTIwODFiOWU0ZDZiM2RmNGFjYTVhZWNiOWU1NDFhOTA1
15
- MWZlOTZhNGM4OGIwMzAyZTMwYmZhZjdiMWE3YTIzNWZkMTAwNzM=
13
+ NWM3YzJjZThlMDIwYTE4ZTFiMTkwOGI3NjEwZmI3MjJmYjQ3NzQ3ODk4ZTQ5
14
+ MzY3Zjk5MzViM2ZjZjA4NGM3ZDNkNjNlNjMyYzg1OTQ5YWE4YjQxMDQ5Nzg2
15
+ YjU3Zjc3ODM4ZTVkYTFmYTVlZWU4NTdhNjE4NDkxMTY5ZWY3YTM=
data/Readme.md CHANGED
@@ -192,11 +192,15 @@ This allows you to loop through the tabs in an intuitive and concise way.
192
192
 
193
193
  ## jQuery Events ##
194
194
 
195
- There are two special events triggered by jqr-helpers:
195
+ There are a few special events triggered by jqr-helpers:
196
196
 
197
197
  * `jqr.load` - this is triggered when a remote call populates an element with
198
198
  data. The target for the event is the element which has just had data
199
199
  populated.
200
+ * `jqr.beforeload` - triggered just before `jqr.load`. This is useful if you
201
+ want to make massage your DOM before allowing jqr-helpers to do its magic.
202
+ * `jqr.afterload` - triggered just after `jqr.load`, allowing you to ensure
203
+ jqr-helper's stuff is done *before* yours.
200
204
  * `jqr.beforedialogopen` - for remote dialogs, this is triggered when the
201
205
  link or button is clicked to open the dialog but before the request is sent out.
202
206
 
@@ -502,8 +502,9 @@
502
502
  $('.ujs-quick-buttonset label').live('mouseenter mouseleave',
503
503
  ujsQuickButtonHover);
504
504
  }
505
- $('body').trigger('jqr.load');
506
-
505
+ $('body').trigger('jqr.beforeload')
506
+ .trigger('jqr.load')
507
+ .trigger('jqr.afterload');
507
508
  });
508
509
 
509
510
  }(jQuery));
data/jqr-helpers.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jqr-helpers'
3
3
  s.require_paths = %w(. lib lib/jqr-helpers)
4
- s.version = '1.0.47'
5
- s.date = '2014-06-20'
4
+ s.version = '1.0.48'
5
+ s.date = '2014-06-23'
6
6
  s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
7
7
  s.description = <<-EOF
8
8
  This gem adds helper methods to create unobtrusive jQuery code. It outputs
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.47'
4
+ VERSION = '1.0.48'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jqr-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.47
4
+ version: 1.0.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement