Skip to content

Commit

Permalink
quick modal fix for #712
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Aug 9, 2024
1 parent 6ef7483 commit 2607ac7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/js/backbone-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -3639,7 +3639,6 @@ var FileSaveView = Backbone.View.extend({
var saveAsFcn = chiseInstance.saveAsNwt;
if (fileformat === "sbgn") {
if (chiseInstance.elementUtilities.mapType === "SBML") {
console.log("fileformat is sbgn and maptype is SBML");
chiseInstance.saveAsSbgnmlForSBML(filename, function () {
var promptSbmlConversionErrorView =
new PromptSbmlConversionErrorView({
Expand All @@ -3648,8 +3647,8 @@ var FileSaveView = Backbone.View.extend({
promptSbmlConversionErrorView.render();
document.getElementById("file-conversion-error-message").innerText =
"Conversion service is not available!";
}
);
});
$(self.el).modal("toggle");
return;
}
saveAsFcn = chiseInstance.saveAsSbgnml;
Expand Down Expand Up @@ -3723,7 +3722,6 @@ var FileSaveView = Backbone.View.extend({
el: "#prompt-sbmlConversionError-table",
});
promptSbmlConversionErrorView.render(data, errorMessage);
//document.getElementById("file-conversion-error-message").innerText = "Conversion service is not available!";
});
} else if (mapType === "SBML") {
chiseInstance.saveSbmlForSBML(filename, function (data, errorMessage) {
Expand Down

0 comments on commit 2607ac7

Please sign in to comment.