jqr-helpers 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,8 @@
10
10
  $(element).after("<img src='/images/jqr-helpers/throbber.gif' class='throbber'/>");
11
11
  }
12
12
  $(element).attr('disabled', 'disabled');
13
+ // refresh disabled state
14
+ $(element).attr('autocomplete', 'off');
13
15
  }
14
16
 
15
17
  function hideThrobber(element) {
@@ -275,7 +277,7 @@
275
277
  $(target).remove();
276
278
  }
277
279
  else {
278
- target.fadeOut(500, function() {$(this).remove()});
280
+ target.fadeOut(500, function() {$(this).remove()});
279
281
  }
280
282
  break;
281
283
  }
@@ -353,6 +355,7 @@
353
355
  });
354
356
  $(this).tabs(options);
355
357
  });
358
+
356
359
  }
357
360
 
358
361
  $(function() {
@@ -381,13 +384,6 @@
381
384
  }
382
385
  $('body').trigger('jqr.load');
383
386
 
384
- // Derived from
385
- // https://makandracards.com/makandra/3877-re-enable-submit-buttons-disabled-by-the-disabled_with-option
386
- $(window).unload(function() {
387
- $.rails.enableFormElements($($.rails.formSubmitSelector));
388
- $('input[disabled],button[disabled],select[disabled]').prop('disabled', false);
389
- });
390
-
391
387
  });
392
388
 
393
389
  }(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.25'
5
- s.date = '2014-01-17'
4
+ s.version = '1.0.26'
5
+ s.date = '2014-01-20'
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.25'
3
+ VERSION = '1.0.26'
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.25
5
+ version: 1.0.26
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Orner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-17 00:00:00.000000000 Z
12
+ date: 2014-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails