beef-has_assets 0.4.0 → 0.4.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/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.4. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.4.1
         
     | 
| 
         @@ -1,13 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         | 
| 
       2 
2 
     | 
    
         
             
            <div id="flickr-select">
         
     | 
| 
       3 
     | 
    
         
            -
              <% form_remote_tag( :url => admin_flickrs_path ) do -%>
         
     | 
| 
      
 3 
     | 
    
         
            +
              <% form_remote_tag( :method => :get, :url => admin_flickrs_path, :before => "flickr_before_handler()", :success => "flickr_display_images(request);" ) do -%>
         
     | 
| 
       4 
4 
     | 
    
         
             
              <p><label for="tags">Search by tag:</label>
         
     | 
| 
       5 
     | 
    
         
            -
              <%= text_field_tag :tags, params[:tags] %>   <%= submit_tag "go"  
     | 
| 
      
 5 
     | 
    
         
            +
              <%= text_field_tag :tags, params[:tags] %>   <%= submit_tag "go" %> <span id="flickr_loading">Loading Flickr images</span></p>
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
              <% end -%>
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
              <div id="flickr-image-container">
         
     | 
| 
       10 
     | 
    
         
            -
                <p>Loading Flickr images</p>
         
     | 
| 
       11 
10 
     | 
    
         
             
                <% #= render :partial => 'admin/shared/flickr_image.html.erb', :collection => flickr_images -%>
         
     | 
| 
       12 
11 
     | 
    
         
             
              </div>
         
     | 
| 
       13 
12 
     | 
    
         | 
| 
         @@ -391,16 +391,22 @@ var Renameable = Class.create(Holdable, { 
     | 
|
| 
       391 
391 
     | 
    
         
             
              } 
         
     | 
| 
       392 
392 
     | 
    
         
             
            });
         
     | 
| 
       393 
393 
     | 
    
         | 
| 
       394 
     | 
    
         
            -
            var  
     | 
| 
       395 
     | 
    
         
            -
             
     | 
| 
       396 
     | 
    
         
            -
             
     | 
| 
       397 
     | 
    
         
            -
                 
     | 
| 
       398 
     | 
    
         
            -
             
     | 
| 
      
 394 
     | 
    
         
            +
            var flickr_comms_ref = false;
         
     | 
| 
      
 395 
     | 
    
         
            +
            var flickr_before_handler = function(){
         
     | 
| 
      
 396 
     | 
    
         
            +
              if(false != flickr_comms_ref)
         
     | 
| 
      
 397 
     | 
    
         
            +
                flickr_comms_ref;
         
     | 
| 
      
 398 
     | 
    
         
            +
              $('flickr_loading').show();
         
     | 
| 
      
 399 
     | 
    
         
            +
            }; 
         
     | 
| 
      
 400 
     | 
    
         
            +
            var flickr_display_images = function(response){
         
     | 
| 
      
 401 
     | 
    
         
            +
              $('flickr_loading').hide();
         
     | 
| 
      
 402 
     | 
    
         
            +
              $('flickr-image-container').update(response.responseText)
         
     | 
| 
       399 
403 
     | 
    
         
             
            }
         
     | 
| 
       400 
     | 
    
         
            -
            var  
     | 
| 
       401 
     | 
    
         
            -
               
     | 
| 
      
 404 
     | 
    
         
            +
            var flickr_load_select = function(){
         
     | 
| 
      
 405 
     | 
    
         
            +
              flickr_before_handler();
         
     | 
| 
      
 406 
     | 
    
         
            +
              flickr_comms_ref = new Ajax.Request('/admin/flickrs', {
         
     | 
| 
       402 
407 
     | 
    
         
             
                method: 'get',
         
     | 
| 
       403 
     | 
    
         
            -
                parameters: { format: 'html', authenticity_token: AJ.authenticity_token() }
         
     | 
| 
      
 408 
     | 
    
         
            +
                parameters: { format: 'html', authenticity_token: AJ.authenticity_token() },
         
     | 
| 
      
 409 
     | 
    
         
            +
                onSuccess: flickr_display_images
         
     | 
| 
       404 
410 
     | 
    
         
             
            });
         
     | 
| 
       405 
411 
     | 
    
         
             
            }
         
     | 
| 
       406 
     | 
    
         
            -
            document.observe('dom:loaded',  
     | 
| 
      
 412 
     | 
    
         
            +
            document.observe('dom:loaded', flickr_load_select);
         
     | 
    
        data/has_assets.gemspec
    CHANGED
    
    | 
         @@ -5,11 +5,11 @@ 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       7 
7 
     | 
    
         
             
              s.name = %q{has_assets}
         
     | 
| 
       8 
     | 
    
         
            -
              s.version = "0.4. 
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "0.4.1"
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
       11 
11 
     | 
    
         
             
              s.authors = ["Steve England"]
         
     | 
| 
       12 
     | 
    
         
            -
              s.date = %q{2009-09- 
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = %q{2009-09-24}
         
     | 
| 
       13 
13 
     | 
    
         
             
              s.email = %q{steve@wearebeef.co.uk}
         
     | 
| 
       14 
14 
     | 
    
         
             
              s.extra_rdoc_files = [
         
     | 
| 
       15 
15 
     | 
    
         
             
                "LICENSE",
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: beef-has_assets
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.4.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Steve England
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2009-09- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2009-09-24 00:00:00 -07:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       15 
15 
     | 
    
         |