Sha256: 4cd45b142fefd9fb6f04dbdd6babe64ecc605b692b6c5e35c98f6c88e9a637bb

Contents?: true

Size: 713 Bytes

Versions: 11

Compression:

Stored size: 713 Bytes

Contents

//= require jquery.treetable
//= require browse_everything/behavior

// Show the files in the queue
function showBrowseEverythingFiles() {
  // We need to check this because https://github.com/samvera/browse-everything/issues/169
  if ($('#browse-btn').length > 0) {
    $('#browse-btn').browseEverything()
    .done(function(data) {
      var evt = { isDefaultPrevented: function() { return false; } };
      var files = $.map(data, function(d) { return { name: d.file_name, size: d.file_size, id: d.url } });
      $.blueimp.fileupload.prototype.options.done.call($('#fileupload').fileupload(), evt, { result: { files: files }});
    })
  }
}
$(document).on('click', '#browse-btn', showBrowseEverythingFiles);

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/assets/javascripts/hyrax/browse_everything.js
hyrax-5.0.0 app/assets/javascripts/hyrax/browse_everything.js
hyrax-5.0.0.rc3 app/assets/javascripts/hyrax/browse_everything.js
hyrax-5.0.0.rc2 app/assets/javascripts/hyrax/browse_everything.js
hyrax-5.0.0.rc1 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0.rc3 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0.rc2 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0.rc1 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0.beta2 app/assets/javascripts/hyrax/browse_everything.js
hyrax-4.0.0.beta1 app/assets/javascripts/hyrax/browse_everything.js