JSLint: semicolons
git-svn-id: http://google-refine.googlecode.com/svn/trunk@423 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
2c221a5bf6
commit
94aa2e0168
@ -29,7 +29,7 @@ function ExpressionPreviewDialog(title, cellIndex, rowIndices, values, expressio
|
|||||||
values,
|
values,
|
||||||
expression
|
expression
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
ExpressionPreviewDialog.generateWidgetHtml = function() {
|
ExpressionPreviewDialog.generateWidgetHtml = function() {
|
||||||
return '<div class="grid-layout layout-tight layout-full"><table rows="4" cols="2">' +
|
return '<div class="grid-layout layout-tight layout-full"><table rows="4" cols="2">' +
|
||||||
@ -141,7 +141,7 @@ ExpressionPreviewDialog.Widget.prototype.getExpression = function(commit) {
|
|||||||
|
|
||||||
ExpressionPreviewDialog.Widget.prototype._getLanguage = function() {
|
ExpressionPreviewDialog.Widget.prototype._getLanguage = function() {
|
||||||
return this._elmts.expressionPreviewLanguageSelect[0].value;
|
return this._elmts.expressionPreviewLanguageSelect[0].value;
|
||||||
}
|
};
|
||||||
|
|
||||||
ExpressionPreviewDialog.Widget.prototype._renderHelpTab = function() {
|
ExpressionPreviewDialog.Widget.prototype._renderHelpTab = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
@ -51,7 +51,7 @@ function ExtendDataPreviewDialog(column, columnIndex, rowIndices, onDone) {
|
|||||||
dismissBusy();
|
dismissBusy();
|
||||||
self._show(properties);
|
self._show(properties);
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
|
ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
|
||||||
var query = {
|
var query = {
|
||||||
@ -115,7 +115,7 @@ ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
|
|||||||
processProperties(o.result.properties);
|
processProperties(o.result.properties);
|
||||||
$.each(o.result["/freebase/type_hints/included_types"], function() {
|
$.each(o.result["/freebase/type_hints/included_types"], function() {
|
||||||
processProperties(this.properties, null);
|
processProperties(this.properties, null);
|
||||||
})
|
});
|
||||||
|
|
||||||
if (cvtProperties.length == 0) {
|
if (cvtProperties.length == 0) {
|
||||||
onDone(allProperties);
|
onDone(allProperties);
|
||||||
@ -247,7 +247,7 @@ ExtendDataPreviewDialog.prototype._update = function() {
|
|||||||
extension: JSON.stringify(this._extension)
|
extension: JSON.stringify(this._extension)
|
||||||
},
|
},
|
||||||
function(data) {
|
function(data) {
|
||||||
self._renderPreview(data)
|
self._renderPreview(data);
|
||||||
},
|
},
|
||||||
"json"
|
"json"
|
||||||
);
|
);
|
||||||
@ -362,4 +362,4 @@ ExtendDataPreviewDialog.prototype._renderPreview = function(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container.append(table);
|
container.append(table);
|
||||||
}
|
};
|
@ -36,7 +36,7 @@ ListFacet.prototype.getUIState = function() {
|
|||||||
delete json.c.selection;
|
delete json.c.selection;
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
}
|
};
|
||||||
|
|
||||||
ListFacet.prototype.getJSON = function() {
|
ListFacet.prototype.getJSON = function() {
|
||||||
var o = {
|
var o = {
|
||||||
@ -49,7 +49,7 @@ ListFacet.prototype.getJSON = function() {
|
|||||||
selection: [],
|
selection: [],
|
||||||
selectBlank: this._blankChoice != null && this._blankChoice.s,
|
selectBlank: this._blankChoice != null && this._blankChoice.s,
|
||||||
selectError: this._errorChoice != null && this._errorChoice.s
|
selectError: this._errorChoice != null && this._errorChoice.s
|
||||||
}
|
};
|
||||||
for (var i = 0; i < this._selection.length; i++) {
|
for (var i = 0; i < this._selection.length; i++) {
|
||||||
var choice = {
|
var choice = {
|
||||||
v: cloneDeep(this._selection[i].v)
|
v: cloneDeep(this._selection[i].v)
|
||||||
|
@ -55,7 +55,7 @@ RangeFacet.prototype.getUIState = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
RangeFacet.prototype.getJSON = function() {
|
RangeFacet.prototype.getJSON = function() {
|
||||||
|
@ -25,7 +25,7 @@ TextSearchFacet.prototype.getUIState = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
}
|
};
|
||||||
|
|
||||||
TextSearchFacet.prototype.getJSON = function() {
|
TextSearchFacet.prototype.getJSON = function() {
|
||||||
var o = {
|
var o = {
|
||||||
|
@ -12,7 +12,7 @@ function onLoad() {
|
|||||||
if (isThereNewRelease()) {
|
if (isThereNewRelease()) {
|
||||||
$('<div id="version-message">' +
|
$('<div id="version-message">' +
|
||||||
'New version "' + GridworksReleases.releases[0].description + '" <a href="' + GridworksReleases.homepage + '">available for download here</a>.' +
|
'New version "' + GridworksReleases.releases[0].description + '" <a href="' + GridworksReleases.homepage + '">available for download here</a>.' +
|
||||||
'</div>').appendTo(document.body)
|
'</div>').appendTo(document.body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ function renderProjects(data) {
|
|||||||
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") {
|
||||||
window.location.reload()
|
window.location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -125,7 +125,7 @@ Gridworks.reinitializeProjectData = function(f) {
|
|||||||
},
|
},
|
||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Utility state functions
|
* Utility state functions
|
||||||
|
@ -38,7 +38,7 @@ BrowsingEngine.prototype.getFacetUIStates = function() {
|
|||||||
f.push(facet.facet.getUIState());
|
f.push(facet.facet.getUIState());
|
||||||
}
|
}
|
||||||
return f;
|
return f;
|
||||||
}
|
};
|
||||||
|
|
||||||
BrowsingEngine.prototype._initializeUI = function() {
|
BrowsingEngine.prototype._initializeUI = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
@ -66,8 +66,8 @@ ProcessWidget.prototype.showUndo = function(historyEntry) {
|
|||||||
var elmts = DOM.bind(this._div);
|
var elmts = DOM.bind(this._div);
|
||||||
|
|
||||||
elmts.description.text(historyEntry.description);
|
elmts.description.text(historyEntry.description);
|
||||||
elmts.undo.click(function() { self.undo() });
|
elmts.undo.click(function() { self.undo(); });
|
||||||
elmts.close.click(function() { $(".process-panel-inner").hide() });
|
elmts.close.click(function() { $(".process-panel-inner").hide(); });
|
||||||
};
|
};
|
||||||
|
|
||||||
ProcessWidget.prototype.undo = function() {
|
ProcessWidget.prototype.undo = function() {
|
||||||
|
@ -44,7 +44,7 @@ SchemaAlignmentDialog.UILink = function(dialog, link, table, options, parentUINo
|
|||||||
};
|
};
|
||||||
|
|
||||||
SchemaAlignmentDialog.UILink.prototype._renderMain = function() {
|
SchemaAlignmentDialog.UILink.prototype._renderMain = function() {
|
||||||
$(this._tdMain).empty()
|
$(this._tdMain).empty();
|
||||||
|
|
||||||
var label = this._link.property != null ? this._link.property.id : "property?";
|
var label = this._link.property != null ? this._link.property.id : "property?";
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ SchemaAlignmentDialog.UILink.prototype._startEditProperty = function(elmt) {
|
|||||||
|
|
||||||
var suggestions = SchemaAlignmentDialog.UILink._rankProperties(outgoing, incoming, sourceTypeID, targetTypeID, targetTypeName);
|
var suggestions = SchemaAlignmentDialog.UILink._rankProperties(outgoing, incoming, sourceTypeID, targetTypeID, targetTypeName);
|
||||||
self._showPropertySuggestPopup(elmt, suggestions);
|
self._showPropertySuggestPopup(elmt, suggestions);
|
||||||
};
|
}
|
||||||
|
|
||||||
var cotypes = [];
|
var cotypes = [];
|
||||||
function doCoTypes() {
|
function doCoTypes() {
|
||||||
@ -125,7 +125,7 @@ SchemaAlignmentDialog.UILink.prototype._startEditProperty = function(elmt) {
|
|||||||
doCoTypes
|
doCoTypes
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
SchemaAlignmentDialog.UILink._getPropertiesOfType(
|
SchemaAlignmentDialog.UILink._getPropertiesOfType(
|
||||||
sourceTypeID,
|
sourceTypeID,
|
||||||
@ -186,7 +186,7 @@ SchemaAlignmentDialog.UILink._rankProperties = function(outgoing, incoming, sour
|
|||||||
|
|
||||||
return score;
|
return score;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
var typeScorer;
|
var typeScorer;
|
||||||
if (targetTypeID === null) {
|
if (targetTypeID === null) {
|
||||||
|
@ -81,14 +81,14 @@ SchemaAlignment._batchSearch = function(queries, onDone) {
|
|||||||
|
|
||||||
args.push(function() {
|
args.push(function() {
|
||||||
onDone(result);
|
onDone(result);
|
||||||
})
|
});
|
||||||
|
|
||||||
Ajax.chainGetJSON.apply(null, args);
|
Ajax.chainGetJSON.apply(null, args);
|
||||||
};
|
};
|
||||||
|
|
||||||
SchemaAlignment._cleanName = function(s) {
|
SchemaAlignment._cleanName = function(s) {
|
||||||
return s.replace(/\W/g, " ").replace(/\s+/g, " ").toLowerCase();
|
return s.replace(/\W/g, " ").replace(/\s+/g, " ").toLowerCase();
|
||||||
}
|
};
|
||||||
|
|
||||||
SchemaAlignment.createNewRootNode = function() {
|
SchemaAlignment.createNewRootNode = function() {
|
||||||
var rootNode = null;
|
var rootNode = null;
|
||||||
@ -136,7 +136,7 @@ function SchemaAlignmentDialog(protograph, onDone) {
|
|||||||
this._nodeUIs = [];
|
this._nodeUIs = [];
|
||||||
this._createDialog();
|
this._createDialog();
|
||||||
this.preview();
|
this.preview();
|
||||||
};
|
}
|
||||||
|
|
||||||
SchemaAlignmentDialog.prototype._createDialog = function() {
|
SchemaAlignmentDialog.prototype._createDialog = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
String.prototype.trim = function() {
|
String.prototype.trim = function() {
|
||||||
return this.replace(/^\s+/, '').replace(/\s+$/, '');
|
return this.replace(/^\s+/, '').replace(/\s+$/, '');
|
||||||
}
|
};
|
@ -6,7 +6,7 @@ function DataTableCellUI(dataTableView, cell, rowIndex, cellIndex, td) {
|
|||||||
this._td = td;
|
this._td = td;
|
||||||
|
|
||||||
this._render();
|
this._render();
|
||||||
};
|
}
|
||||||
|
|
||||||
DataTableCellUI.prototype._render = function() {
|
DataTableCellUI.prototype._render = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -132,7 +132,7 @@ DataTableCellUI.prototype._render = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
divContent.appendTo(this._td)
|
divContent.appendTo(this._td);
|
||||||
};
|
};
|
||||||
|
|
||||||
DataTableCellUI.prototype._doRematch = function() {
|
DataTableCellUI.prototype._doRematch = function() {
|
||||||
|
@ -337,7 +337,7 @@ DataTableColumnHeaderUI.prototype._createMenuForColumnHeader = function(elmt) {
|
|||||||
{
|
{
|
||||||
label: "Collapse All Other Columns",
|
label: "Collapse All Other Columns",
|
||||||
click: function() {
|
click: function() {
|
||||||
var collapsedColumnNames = {}
|
var collapsedColumnNames = {};
|
||||||
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
|
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
|
||||||
if (i != self._columnIndex) {
|
if (i != self._columnIndex) {
|
||||||
collapsedColumnNames[theProject.columnModel.columns[i].name] = true;
|
collapsedColumnNames[theProject.columnModel.columns[i].name] = true;
|
||||||
@ -633,7 +633,7 @@ DataTableColumnHeaderUI.prototype._doTextTransformPrompt = function() {
|
|||||||
bodyElmts.repeatCountInput[0].value
|
bodyElmts.repeatCountInput[0].value
|
||||||
);
|
);
|
||||||
dismiss();
|
dismiss();
|
||||||
})
|
});
|
||||||
footerElmts.cancelButton.click(dismiss);
|
footerElmts.cancelButton.click(dismiss);
|
||||||
|
|
||||||
var o = DataTableView.sampleVisibleRows(this._column);
|
var o = DataTableView.sampleVisibleRows(this._column);
|
||||||
@ -842,7 +842,7 @@ DataTableColumnHeaderUI.prototype._doAddColumn = function(initialExpression) {
|
|||||||
{ modelsChanged: true }
|
{ modelsChanged: true }
|
||||||
);
|
);
|
||||||
dismiss();
|
dismiss();
|
||||||
})
|
});
|
||||||
footerElmts.cancelButton.click(dismiss);
|
footerElmts.cancelButton.click(dismiss);
|
||||||
|
|
||||||
var o = DataTableView.sampleVisibleRows(this._column);
|
var o = DataTableView.sampleVisibleRows(this._column);
|
||||||
|
@ -87,7 +87,7 @@ DataTableView.prototype._renderPagingControls = function(table) {
|
|||||||
var sizes = [ 5, 10, 15, 20, 25, 50 ];
|
var sizes = [ 5, 10, 15, 20, 25, 50 ];
|
||||||
var renderPageSize = function(index) {
|
var renderPageSize = function(index) {
|
||||||
var pageSize = sizes[index];
|
var pageSize = sizes[index];
|
||||||
var a = $('<a href="javascript:{}"></a>').appendTo(pagingControls1)
|
var a = $('<a href="javascript:{}"></a>').appendTo(pagingControls1);
|
||||||
if (pageSize == self._pageSize) {
|
if (pageSize == self._pageSize) {
|
||||||
a.text("[" + pageSize + "]").addClass("inaction");
|
a.text("[" + pageSize + "]").addClass("inaction");
|
||||||
} else {
|
} else {
|
||||||
@ -209,7 +209,7 @@ DataTableView.prototype._renderDataTable = function(table) {
|
|||||||
|
|
||||||
if (column.name in self._collapsedColumnNames) {
|
if (column.name in self._collapsedColumnNames) {
|
||||||
$(td).html(" ").attr("title", column.name).click(function(evt) {
|
$(td).html(" ").attr("title", column.name).click(function(evt) {
|
||||||
delete self._collapsedColumnNames[column.name]
|
delete self._collapsedColumnNames[column.name];
|
||||||
self.render();
|
self.render();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user