From 2607ac7389f2e02d3b02c933ad9663dd3aeda5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umut=20Utku=20ER=C5=9EAH=C4=B0NCE?= Date: Fri, 9 Aug 2024 19:38:16 +0300 Subject: [PATCH] quick modal fix for #712 --- app/js/backbone-views.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/js/backbone-views.js b/app/js/backbone-views.js index f30333ee..db4d350e 100644 --- a/app/js/backbone-views.js +++ b/app/js/backbone-views.js @@ -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({ @@ -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; @@ -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) {