diff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js index e6dd2391c..b8714db8d 100644 --- a/main/webapp/modules/core/scripts/project.js +++ b/main/webapp/modules/core/scripts/project.js @@ -178,7 +178,7 @@ Refine.reinitializeProjectData = function(f, fError) { $.getJSON( "command/core/get-project-metadata?" + $.param({ project: theProject.id }), null, function(data) { - if (data.status == 'error') { + if (data.status == "error") { alert(data.message); if (fError) { fError(); diff --git a/main/webapp/modules/core/scripts/project/browsing-engine.js b/main/webapp/modules/core/scripts/project/browsing-engine.js index a96738dc8..d9e18bcd4 100644 --- a/main/webapp/modules/core/scripts/project/browsing-engine.js +++ b/main/webapp/modules/core/scripts/project/browsing-engine.js @@ -247,7 +247,7 @@ BrowsingEngine.prototype.update = function(onDone) { "command/core/compute-facets?" + $.param({ project: theProject.id }), { engine: JSON.stringify(this.getJSON(true)) }, function(data) { - if(data.code === 'error') { + if(data.code === "error") { var clearErr = $('#err-text').remove(); var err = $('
') .text(data.message)