Example #1
0
 error: function(model, response) {
     if (typeof response.responseJSON !== "undefined") {
         mod_toastr.error(response.responseJSON.err_msg);
     } else {
         mod_toastr.error("An error occured while attempting to update the folder.");
     }
 }
Example #2
0
 error: function(model, response) {
     if (typeof response.responseJSON !== "undefined") {
         mod_toastr.error(`Folder was not undeleted. ${response.responseJSON.err_msg}`);
     } else {
         mod_toastr.error("An error occured! Folder was not undeleted. Please try again.");
     }
 }
Example #3
0
 reader.onload = theFile => {
     let wf_json;
     try {
         wf_json = JSON.parse(reader.result);
     } catch (e) {
         mod_toastr.error(`Could not read file '${f.name}'. Verify it is a valid Galaxy workflow`);
         wf_json = null;
     }
     if (wf_json) {
         this.collection.create(wf_json, {
             at: 0,
             wait: true,
             success: function() {
                 mod_toastr.success(`Successfully imported workflow '${wf_json.name}'`);
             },
             error: function(model, resp, options) {
                 mod_toastr.error(options.errorThrown);
             }
         });
     }
 };
 .fail(() => {
     mod_toastr.error("An error occurred while attempting to fetch library permissions.");
 });
 .fail(() => {
     mod_toastr.error("An error occurred while attempting to make dataset unrestricted.");
 });
 .fail(() => {
     mod_toastr.error("An error occurred while attempting to make dataset private.");
 });
Example #7
0
 error: function(model, resp, options) {
     // signature seems to have changed over the course of backbone dev
     // see https://github.com/jashkenas/backbone/issues/2606#issuecomment-19289483
     mod_toastr.error(options.errorThrown);
 }
Example #8
0
 error: function(model, resp, options) {
     mod_toastr.error(options.errorThrown);
 }
Example #9
0
 }).error((jqXHR, textStatus, errorThrown) => {
     mod_toastr.error(jqXHR.responseJSON.err_msg);
 });