From 98f37905d7d2fcb533d606c3f29fd0ba99ae1db6 Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Fri, 27 Oct 2017 12:22:01 +0100 Subject: [PATCH] More minor syntax changes to make Codacy a little happier --- main/webapp/modules/core/scripts/project.js | 4 ++-- main/webapp/modules/core/scripts/project/browsing-engine.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js index b8714db8d..ab86a449a 100644 --- a/main/webapp/modules/core/scripts/project.js +++ b/main/webapp/modules/core/scripts/project.js @@ -220,7 +220,7 @@ Refine._renameProject = function() { data: { "project" : theProject.id, "name" : name }, dataType: "json", success: function (data) { - if (data && typeof data.code != 'undefined' && data.code == "ok") { + if (data && typeof data.code != "undefined" && data.code == "ok") { theProject.metadata.name = name; Refine.setTitle(); } else { @@ -428,7 +428,7 @@ Refine.fetchRows = function(start, limit, onDone, sorting) { "command/core/get-rows?" + $.param({ project: theProject.id, start: start, limit: limit }), body, function(data) { - if(data.code === 'error') { + if(data.code === "error") { data = theProject.rowModel; } theProject.rowModel = data; diff --git a/main/webapp/modules/core/scripts/project/browsing-engine.js b/main/webapp/modules/core/scripts/project/browsing-engine.js index d9e18bcd4..d75a097a4 100644 --- a/main/webapp/modules/core/scripts/project/browsing-engine.js +++ b/main/webapp/modules/core/scripts/project/browsing-engine.js @@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. function BrowsingEngine(div, facetConfigs) { this._div = div; - this._mode = theProject.recordModel.hasRecords ? 'record-based' : 'row-based'; + this._mode = theProject.recordModel.hasRecords ? "record-based" : "row-based"; this._facets = []; this._initializeUI();