Minor syntax change for Codacy
This commit is contained in:
parent
e4bdca9c95
commit
f5e4420af9
@ -178,7 +178,7 @@ Refine.reinitializeProjectData = function(f, fError) {
|
|||||||
$.getJSON(
|
$.getJSON(
|
||||||
"command/core/get-project-metadata?" + $.param({ project: theProject.id }), null,
|
"command/core/get-project-metadata?" + $.param({ project: theProject.id }), null,
|
||||||
function(data) {
|
function(data) {
|
||||||
if (data.status == 'error') {
|
if (data.status == "error") {
|
||||||
alert(data.message);
|
alert(data.message);
|
||||||
if (fError) {
|
if (fError) {
|
||||||
fError();
|
fError();
|
||||||
|
@ -247,7 +247,7 @@ BrowsingEngine.prototype.update = function(onDone) {
|
|||||||
"command/core/compute-facets?" + $.param({ project: theProject.id }),
|
"command/core/compute-facets?" + $.param({ project: theProject.id }),
|
||||||
{ engine: JSON.stringify(this.getJSON(true)) },
|
{ engine: JSON.stringify(this.getJSON(true)) },
|
||||||
function(data) {
|
function(data) {
|
||||||
if(data.code === 'error') {
|
if(data.code === "error") {
|
||||||
var clearErr = $('#err-text').remove();
|
var clearErr = $('#err-text').remove();
|
||||||
var err = $('<div id="err-text">')
|
var err = $('<div id="err-text">')
|
||||||
.text(data.message)
|
.text(data.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user