More minor syntax changes to make Codacy a little happier

This commit is contained in:
Owen Stephens 2017-10-27 12:22:01 +01:00
parent f5e4420af9
commit 98f37905d7
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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();