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 },
|
||||
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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user