widget_list 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- svn delete vendor/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/specifications/widget_list-$1.gemspec vendor/bundle/ruby/1.9.1/gems/widget_list-$1
1
+ svn delete --force vendor/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/specifications/widget_list-$1.gemspec vendor/bundle/ruby/1.9.1/gems/widget_list-$1
2
2
 
3
3
  grep -rl '"widget_list", "'$1'"' Gemfile | xargs sed -i 's/"widget_list", "'$1'"/"widget_list", "'$2'"/g'
4
4
 
@@ -1,3 +1,3 @@
1
1
  module WidgetList
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -241,6 +241,7 @@ function ListJumpResponse(response)
241
241
  {
242
242
  jQuery('.' + response['list_id'] + '-search').replaceWith(response['search_bar']);
243
243
  InitInfoFields(jQuery('#list_search_id_' + response['list_id']));
244
+ RansackEventHandler();
244
245
  }
245
246
 
246
247
  if(typeof response['export_button'] === 'string')
@@ -558,6 +559,7 @@ function BuildUrl(getVars)
558
559
  jQuery(document).ready(
559
560
  function()
560
561
  {
562
+ RansackEventHandler();
561
563
  InitInfoFields();
562
564
  });
563
565
  })(jQuery);
@@ -777,21 +779,17 @@ jQuery(document).ready(function($) {
777
779
  });
778
780
  });
779
781
 
780
- (function() {
781
-
782
- jQuery(function() {
783
- jQuery('.advanced-search-container-inline li form').on('click', '.remove_fields', function(event) {
784
- jQuery(this).closest('.field').remove();
785
- return event.preventDefault();
786
- });
787
- return jQuery('.advanced-search-container-inline li form').on('click', '.add_fields', function(event) {
788
- var regexp, time;
789
- time = new Date().getTime();
790
- regexp = new RegExp(jQuery(this).data('id'), 'g');
791
- jQuery(this).before(jQuery(this).data('fields').replace(regexp, time));
792
- return event.preventDefault();
793
- });
782
+ function RansackEventHandler() {
783
+ jQuery('.advanced-search-container-inline li form').on('click', '.remove_fields', function(event) {
784
+ jQuery(this).closest('.field').remove();
785
+ return event.preventDefault();
794
786
  });
795
-
796
- }).call(this);
787
+ jQuery('.advanced-search-container-inline li form').on('click', '.add_fields', function(event) {
788
+ var regexp, time;
789
+ time = new Date().getTime();
790
+ regexp = new RegExp(jQuery(this).data('id'), 'g');
791
+ jQuery(this).before(jQuery(this).data('fields').replace(regexp, time));
792
+ return event.preventDefault();
793
+ });
794
+ }
797
795
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: widget_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: