widget_list 1.3.0 → 1.3.1
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.
- data/checkin_gem.sh +1 -1
 - data/lib/widget_list/version.rb +1 -1
 - data/vendor/assets/javascripts/widget_list.js +14 -16
 - metadata +1 -1
 
    
        data/checkin_gem.sh
    CHANGED
    
    | 
         @@ -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 
     | 
    
         | 
    
        data/lib/widget_list/version.rb
    CHANGED
    
    
| 
         @@ -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 
     | 
    
         
            -
             
     | 
| 
       781 
     | 
    
         
            -
             
     | 
| 
       782 
     | 
    
         
            -
             
     | 
| 
       783 
     | 
    
         
            -
                 
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         |