Sha256: 5c1a9dfe41e216f1019d5e6619aa9c9adde4beb2a542a0d0a46942bc3bfac8ca

Contents?: true

Size: 881 Bytes

Versions: 3

Compression:

Stored size: 881 Bytes

Contents

.photos--multinew
  .row
    .small-12.columns
      %h3.center Add Photos
      %ul{ :id => 'photos', :class => 'thumbnails', 'data-json-url' => manager_j_gallery_path( gallery.id ) }
      %input{ :id => 'fileupload', :type => 'file', :name => 'photo[photo]', 'data-url' => manager_photos_multiadd_path( gallery.galleryname ), :multiple => '' }
      
%script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"}
%script{:src => "/js/jquery.ui.widget.js"}
%script{:src => "/js/jquery.iframe-transport.js"}
%script{:src => "/js/jquery.fileupload.js"}
:javascript
  $(function () {
      $('#fileupload').fileupload({
          dataType: 'json',
          done: function (e, data) {
              $.each(data.result.files, function (index, file) {
                  $('<p/>').text(file.name).appendTo(document.body);
              });
          }
      });
  });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ish_manager-0.1.3 app/views/ish_manager/photos/_multinew.haml
ish_manager-0.1.2 app/views/ish_manager/photos/_multinew.haml
ish_manager-0.1.0 app/views/ish_manager/photos/_multinew.haml