Minor syntax change for Codacy
This commit is contained in:
parent
e4bdca9c95
commit
f5e4420af9
@ -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();
|
||||
|
@ -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 = $('<div id="err-text">')
|
||||
.text(data.message)
|
||||
|
Loading…
Reference in New Issue
Block a user