Sha256: bdde9de0cb95e65a76a47c70dd081b3575f02ada21ab370ce39d5de2b7fa2b32
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
<div class="alert alert-success"> <%= t("sufia.upload.cloud_timeout_message_html", contact_href: link_to(t("sufia.upload.alert.contact_href_text"), sufia.contact_form_index_path)) %> </div> <%= button_tag(t('sufia.upload.browse_everything.browse_files_button'), type: 'button', class: 'btn btn-lg btn-success', id: "browse-btn", 'data-toggle' => 'browse-everything', 'data-route' => browse_everything_engine.root_path, 'data-target' => "##{f.object.persisted? ? 'edit' : 'new'}_#{f.object.model.model_name.param_key}" ) %> <p id="status">0 items selected</p> <script> // Update the count in #status element when user selects files. $(document).on('page:change', function() { $('#browse-btn').browseEverything() .done(function(data) { $('#status').html(data.length.toString() + " <%= t('sufia.upload.browse_everything.files_selected')%>") $('#submit-btn').html("Submit "+data.length.toString() + " selected files") 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 }}); }) }); </script>
Version data entries
5 entries across 5 versions & 1 rubygems