From 0d21d4532cc2272335da86939bc62972b48de2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umut=20Utku=20ER=C5=9EAH=C4=B0NCE?= Date: Tue, 6 Aug 2024 14:48:19 +0300 Subject: [PATCH] item 3 changes #712 --- app/js/app-utilities.js | 1 - app/js/backbone-views.js | 10 ++++------ index.html | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/js/app-utilities.js b/app/js/app-utilities.js index 59d63e74..2c1a647d 100644 --- a/app/js/app-utilities.js +++ b/app/js/app-utilities.js @@ -3727,7 +3727,6 @@ appUtilities.resizeNodesToContent = function(nodes){ if(collection.length == 1 && (collection[0].isParent() || collection[0].data('collapsedChildren')) && collection[0].selected()) { cy.$(':selected').trigger('select'); }; - }; appUtilities.transformClassInfo = function( classInfo ) { diff --git a/app/js/backbone-views.js b/app/js/backbone-views.js index 9c7fde44..f30333ee 100644 --- a/app/js/backbone-views.js +++ b/app/js/backbone-views.js @@ -3727,12 +3727,10 @@ var FileSaveView = Backbone.View.extend({ }); } else if (mapType === "SBML") { chiseInstance.saveSbmlForSBML(filename, function (data, errorMessage) { - var promptSbmlConversionErrorView = - new PromptSbmlConversionErrorView({ - el: "#prompt-sbmlConversionError-table", - }); - promptSbmlConversionErrorView.render(data, errorMessage); - //document.getElementById("file-conversion-error-message").innerText = "Conversion service is not available!"; + var exportError = new ExportErrorView({el: "#exportError-table"}); + exportError.render(); + document.getElementById("export-error-message").innerText + = "SBML export failed. Please check if the map is valid!"; }); } diff --git a/index.html b/index.html index 3a281add..4cebce64 100644 --- a/index.html +++ b/index.html @@ -3355,7 +3355,7 @@