diff --git a/karma.conf.js b/karma.conf.js index 8d2623e..65c232b 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,4 +17,4 @@ module.exports = function(config) { autoWatch: false, concurrency: Infinity }) -} \ No newline at end of file +} diff --git a/sbgnviz.js b/sbgnviz.js index 5e83bfe..6355203 100644 --- a/sbgnviz.js +++ b/sbgnviz.js @@ -495,4 +495,4 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"sbgnviz","version":"6.0.1","d /******/ return __webpack_exports__; /******/ })() ; -}); \ No newline at end of file +}); diff --git a/src/utilities/sbgnml-to-gpml-converter-factory.js b/src/utilities/sbgnml-to-gpml-converter-factory.js index 4779ab2..8e5dd90 100644 --- a/src/utilities/sbgnml-to-gpml-converter-factory.js +++ b/src/utilities/sbgnml-to-gpml-converter-factory.js @@ -10,7 +10,7 @@ module.exports = function () { sbgnmlToGpml.convert = function (xml, callback) { - var conversionApiUrl = "https://minerva-dev.lcsb.uni.lu/minerva/api/convert/SBGN-ML:GPML"; + var conversionApiUrl = "https://minerva-service.lcsb.uni.lu/minerva/api/convert/SBGN-ML:GPML"; return $.ajax({ type: 'post', diff --git a/src/utilities/sbgnml-to-sbml-converter-factory.js b/src/utilities/sbgnml-to-sbml-converter-factory.js index 03802e1..0a60f96 100644 --- a/src/utilities/sbgnml-to-sbml-converter-factory.js +++ b/src/utilities/sbgnml-to-sbml-converter-factory.js @@ -10,7 +10,7 @@ module.exports = function () { sbgnmlToSbml.convert = function (xml, callback) { - var conversionApiUrl = "https://minerva-dev.lcsb.uni.lu/minerva/api/convert/SBGN-ML:SBML"; + var conversionApiUrl = "https://minerva-service.lcsb.uni.lu/minerva/api/convert/SBGN-ML:SBML"; return $.ajax({ type: 'post', @@ -37,4 +37,4 @@ module.exports = function () { return sbgnmlToSbml; } - \ No newline at end of file + diff --git a/src/utilities/sbml-to-sbgnml-converter-factory.js b/src/utilities/sbml-to-sbgnml-converter-factory.js index 9544517..877694d 100644 --- a/src/utilities/sbml-to-sbgnml-converter-factory.js +++ b/src/utilities/sbml-to-sbgnml-converter-factory.js @@ -10,7 +10,7 @@ module.exports = function() { sbmlToSbgnml.convert = function (xml, callback) { - var conversionApiUrl = "https://minerva-dev.lcsb.uni.lu/minerva/api/convert/SBML:SBGN-ML"; + var conversionApiUrl = "https://minerva-service.lcsb.uni.lu/minerva/api/convert/SBML:SBGN-ML"; return $.ajax({ type: 'post', diff --git a/src/utilities/ui-utilities-factory.js b/src/utilities/ui-utilities-factory.js index 262a179..0291cca 100644 --- a/src/utilities/ui-utilities-factory.js +++ b/src/utilities/ui-utilities-factory.js @@ -17,7 +17,7 @@ module.exports = function () { } uiUtilities.startSpinner = function (className) { - if (!className) { + if (!className) { className = 'default-class'; } @@ -36,12 +36,17 @@ module.exports = function () { $("."+className+'-text').fadeIn(0) } + uiUtilities.showSpinnerText = function(className) + { + $("."+className+'-text').fadeIn(0) + } + uiUtilities.endSpinner = function (className) { - if (!className) { - className = 'default-class'; - } + if (!className) { + className = 'default-class'; + } - if ($('.' + className + '-wrapper').length > 0) { + if ($('.' + className + '-wrapper').length > 0) { $('.' + className + '-wrapper').remove(); } }; diff --git a/test/utilities/sbgnml-to-sbml-converter-factory-test.js b/test/utilities/sbgnml-to-sbml-converter-factory-test.js index fe4239d..ca0c604 100644 --- a/test/utilities/sbgnml-to-sbml-converter-factory-test.js +++ b/test/utilities/sbgnml-to-sbml-converter-factory-test.js @@ -39,4 +39,4 @@ describe('sbgnmlToSbml', function () { assert.isOk(result.result); }); }); -}); \ No newline at end of file +}); diff --git a/test/utilities/sbml-to-sbgnml-converter-factory-test.js b/test/utilities/sbml-to-sbgnml-converter-factory-test.js index f75c78d..0534194 100644 --- a/test/utilities/sbml-to-sbgnml-converter-factory-test.js +++ b/test/utilities/sbml-to-sbgnml-converter-factory-test.js @@ -44,4 +44,4 @@ describe('sbmlToSbgnml', function () { assert.isOk(result.result); }); }); -}); \ No newline at end of file +});