element: $('#file-uploader')[0],
multiple: false,
+ onSubmit: function (id, fileName) {
+ $('#file-uploader').hide();
+ $('div.upload-status').show();
+ },
+
onComplete: function( id, fileName, responseJSON ) {
if( responseJSON.success ) {
+ console.log("responseJSON.note_url " + responseJSON.note_url);
// activate the form for submitting
- $('form#upload_form').attr('action', responseJSON.note_url);
+ $('form#add-note').attr('action', responseJSON.note_url);
// inform the user of success
$('#add-note-status').text('Uploaded');
// TODO: activate the save button