jqr-helpers 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,14 +93,15 @@
93
93
  $(this).trigger('jqr.beforedialogopen');
94
94
  $(document.body).append('<div class="ui-widget-overlay ui-front">');
95
95
  $(document.body).append('<div id="remote-dialog-throbber">');
96
+ var closeX = $(this).data('close-x');
96
97
  if (dialogElement.length == 0) {
97
98
  $('body').append("<div id='" + dialogID + "'>");
98
99
  dialogElement = $('#' + dialogID);
99
- if ($(this).data('close-x')) {
100
- dialogElement.prepend('<span class="ujs-dialog-x"></span>');
101
- }
102
100
  }
103
101
  dialogElement.load(url, function() {
102
+ if (closeX) {
103
+ dialogElement.prepend('<span class="ujs-dialog-x"></span>');
104
+ }
104
105
  $('.ui-widget-overlay').remove();
105
106
  $('#remote-dialog-throbber').remove();
106
107
  $(this).dialog(dialogOptions);
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.16'
5
- s.date = '2013-12-20'
4
+ s.version = '1.0.17'
5
+ s.date = '2013-12-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,5 +1,5 @@
1
1
  module JqrHelpers
2
2
  module Rails
3
- VERSION = '1.0.16'
3
+ VERSION = '1.0.17'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: jqr-helpers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.16
5
+ version: 1.0.17
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Orner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-20 00:00:00.000000000 Z
12
+ date: 2013-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails