activeadmin-selleo-cms 0.0.40 → 0.0.41
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/app/admin/activeadmin_selleo_cms/attachment.rb +1 -1
 - data/app/assets/javascripts/activeadmin-selleo-cms/custom.js +0 -1
 - data/app/models/activeadmin_selleo_cms/asset.rb +1 -1
 - data/app/views/admin/pages/reorder.html.haml +7 -1
 - data/app/views/admin/pages/update_positions.js.erb +1 -1
 - data/lib/activeadmin-selleo-cms/version.rb +1 -1
 - metadata +2 -2
 
| 
         @@ -57,7 +57,6 @@ function delete_related_item(related_item_id) { 
     | 
|
| 
       57 
57 
     | 
    
         
             
            }
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         
             
            function update_positions(pagesArray) {
         
     | 
| 
       60 
     | 
    
         
            -
                $('.update-positions-button').attr('disabled', true).attr('value', 'Saving...')
         
     | 
| 
       61 
60 
     | 
    
         
             
                $.ajax({
         
     | 
| 
       62 
61 
     | 
    
         
             
                    url: '/admin/pages/update_positions.js',
         
     | 
| 
       63 
62 
     | 
    
         
             
                    data: { 'page_ids': pagesArray },
         
     | 
| 
         @@ -3,4 +3,10 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
                %li.ui-state-default{'data-id' => page.id}
         
     | 
| 
       4 
4 
     | 
    
         
             
                  %span.ui-icon.ui-icon-arrowthick-2-n-s
         
     | 
| 
       5 
5 
     | 
    
         
             
                  = page
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            :javascript
         
     | 
| 
      
 8 
     | 
    
         
            +
              $('.sortable').sortable({
         
     | 
| 
      
 9 
     | 
    
         
            +
                update: function( event, ui ) {
         
     | 
| 
      
 10 
     | 
    
         
            +
                  update_positions( $('.sortable').sortable( 'toArray', { attribute: 'data-id' } ));
         
     | 
| 
      
 11 
     | 
    
         
            +
                }
         
     | 
| 
      
 12 
     | 
    
         
            +
              });
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: activeadmin-selleo-cms
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.41
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2013-06- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-06-20 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rails
         
     |