Sha256: 53833d8f9e2599a416020d2e272450bed8247b2a866ed2be3c91a724242fef47

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

= render :partial => 'show_image_list', :locals => { :photos => photos }

#image_list_pages.clear
  = paginate @photos

:javascript
  $('image_list_pages').select('a').invoke('observe', 'click', remote_paginate )
  function remote_paginate(event){
    $('dynamic_images_list').update("Loading images...<br /><img src='/assets/spinner.gif'>");
    element = Event.element(event);
    new Ajax.Request(element.href, {asynchronous:true, evalScripts:true, method:'get'});
    Event.stop(event);
  }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/photos/_manage_photos.html.haml
community_engine-2.3.1 app/views/photos/_manage_photos.html.haml
community_engine-2.3.0 app/views/photos/_manage_photos.html.haml
community_engine-2.1.0 app/views/photos/_manage_photos.html.haml
community_engine-2.0.0 app/views/photos/_manage_photos.html.haml