More minor syntax changes to make Codacy a little happier
This commit is contained in:
parent
f5e4420af9
commit
98f37905d7
@ -220,7 +220,7 @@ Refine._renameProject = function() {
|
|||||||
data: { "project" : theProject.id, "name" : name },
|
data: { "project" : theProject.id, "name" : name },
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
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;
|
theProject.metadata.name = name;
|
||||||
Refine.setTitle();
|
Refine.setTitle();
|
||||||
} else {
|
} else {
|
||||||
@ -428,7 +428,7 @@ Refine.fetchRows = function(start, limit, onDone, sorting) {
|
|||||||
"command/core/get-rows?" + $.param({ project: theProject.id, start: start, limit: limit }),
|
"command/core/get-rows?" + $.param({ project: theProject.id, start: start, limit: limit }),
|
||||||
body,
|
body,
|
||||||
function(data) {
|
function(data) {
|
||||||
if(data.code === 'error') {
|
if(data.code === "error") {
|
||||||
data = theProject.rowModel;
|
data = theProject.rowModel;
|
||||||
}
|
}
|
||||||
theProject.rowModel = data;
|
theProject.rowModel = data;
|
||||||
|
@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
function BrowsingEngine(div, facetConfigs) {
|
function BrowsingEngine(div, facetConfigs) {
|
||||||
this._div = div;
|
this._div = div;
|
||||||
this._mode = theProject.recordModel.hasRecords ? 'record-based' : 'row-based';
|
this._mode = theProject.recordModel.hasRecords ? "record-based" : "row-based";
|
||||||
|
|
||||||
this._facets = [];
|
this._facets = [];
|
||||||
this._initializeUI();
|
this._initializeUI();
|
||||||
|
Loading…
Reference in New Issue
Block a user