Cleaned up code formatting in .js, .html, .vt, .css, .less files.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2185 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
c9db107d7e
commit
bad7266534
@ -19,7 +19,8 @@
|
|||||||
<tr><td>Source ID (optional)</td>
|
<tr><td>Source ID (optional)</td>
|
||||||
<td colspan="2"><input type="text" size="60" id="freebase-loading-source-id" bind="source_id" /></td>
|
<td colspan="2"><input type="text" size="60" id="freebase-loading-source-id" bind="source_id" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan="3">
|
<tr>
|
||||||
|
<td colspan="3">
|
||||||
<p class="body-text">Note: Your data will only be loaded into
|
<p class="body-text">Note: Your data will only be loaded into
|
||||||
<a href="http://www.sandbox-freebase.com/" target="_blank">Sandbox</a>.
|
<a href="http://www.sandbox-freebase.com/" target="_blank">Sandbox</a>.
|
||||||
Sandbox is where everyone can experiment with Freebase technologies without disruption
|
Sandbox is where everyone can experiment with Freebase technologies without disruption
|
||||||
|
@ -174,9 +174,10 @@ FreebaseLoadingDialog.prototype._load = function() {
|
|||||||
var doLoad = function() {
|
var doLoad = function() {
|
||||||
var dismissBusy = DialogSystem.showBusy();
|
var dismissBusy = DialogSystem.showBusy();
|
||||||
|
|
||||||
$.post("/command/freebase/upload-data",
|
$.post(
|
||||||
|
"/command/freebase/upload-data",
|
||||||
{
|
{
|
||||||
project: theProject.id,
|
"project" : theProject.id,
|
||||||
"qa" : qa,
|
"qa" : qa,
|
||||||
"engine" : JSON.stringify(ui.browsingEngine.getJSON()),
|
"engine" : JSON.stringify(ui.browsingEngine.getJSON()),
|
||||||
"source_name" : self._elmts.source_name.val(),
|
"source_name" : self._elmts.source_name.val(),
|
||||||
|
@ -150,4 +150,3 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -49,7 +49,12 @@ function populatePreferences(prefs) {
|
|||||||
|
|
||||||
$('<h1>').text("Preferences").appendTo(body);
|
$('<h1>').text("Preferences").appendTo(body);
|
||||||
|
|
||||||
var table = $('<table>').addClass("list-table").addClass("preferences").html('<tr><th>Key</th><th>Value</th><th></th></tr>').appendTo(body)[0];
|
var table = $('<table>')
|
||||||
|
.addClass("list-table")
|
||||||
|
.addClass("preferences")
|
||||||
|
.html('<tr><th>Key</th><th>Value</th><th></th></tr>')
|
||||||
|
.appendTo(body)[0];
|
||||||
|
|
||||||
for (var k in prefs) {
|
for (var k in prefs) {
|
||||||
var tr = table.insertRow(table.rows.length);
|
var tr = table.insertRow(table.rows.length);
|
||||||
preferenceUIs.push(new PreferenceUI(tr, k, prefs[k]));
|
preferenceUIs.push(new PreferenceUI(tr, k, prefs[k]));
|
||||||
|
@ -94,7 +94,9 @@ DataTableView.prototype.render = function() {
|
|||||||
'<div class="viewpanel-sorting" bind="sortingControls"></div>' +
|
'<div class="viewpanel-sorting" bind="sortingControls"></div>' +
|
||||||
'<div class="viewpanel-paging" bind="pagingControls"></div>' +
|
'<div class="viewpanel-paging" bind="pagingControls"></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div bind="dataTableContainer" class="data-table-container" style="display: none;"><table bind="table" class="data-table" cellspacing="0"></table></div>'
|
'<div bind="dataTableContainer" class="data-table-container" style="display: none;">' +
|
||||||
|
'<table bind="table" class="data-table" cellspacing="0"></table>' +
|
||||||
|
'</div>'
|
||||||
);
|
);
|
||||||
var elmts = DOM.bind(html);
|
var elmts = DOM.bind(html);
|
||||||
|
|
||||||
@ -337,7 +339,8 @@ DataTableView.prototype._renderDataTable = function(table) {
|
|||||||
{ row: row.i, starred: newStarred },
|
{ row: row.i, starred: newStarred },
|
||||||
null,
|
null,
|
||||||
{},
|
{},
|
||||||
{ onDone: function(o) {
|
{
|
||||||
|
onDone: function(o) {
|
||||||
row.starred = newStarred;
|
row.starred = newStarred;
|
||||||
renderRow(tr, r, row, even);
|
renderRow(tr, r, row, even);
|
||||||
}
|
}
|
||||||
@ -358,7 +361,8 @@ DataTableView.prototype._renderDataTable = function(table) {
|
|||||||
{ row: row.i, flagged: newFlagged },
|
{ row: row.i, flagged: newFlagged },
|
||||||
null,
|
null,
|
||||||
{},
|
{},
|
||||||
{ onDone: function(o) {
|
{
|
||||||
|
onDone: function(o) {
|
||||||
row.flagged = newFlagged;
|
row.flagged = newFlagged;
|
||||||
renderRow(tr, r, row, even);
|
renderRow(tr, r, row, even);
|
||||||
}
|
}
|
||||||
@ -482,7 +486,8 @@ DataTableView.prototype._addSortingCriterion = function(criterion, alone) {
|
|||||||
DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var menu = [
|
var menu = [
|
||||||
{ label: "Facet",
|
{
|
||||||
|
label: "Facet",
|
||||||
id: "core/facets",
|
id: "core/facets",
|
||||||
width: "200px",
|
width: "200px",
|
||||||
submenu: [
|
submenu: [
|
||||||
@ -523,7 +528,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{ label: "Edit rows",
|
{
|
||||||
|
label: "Edit rows",
|
||||||
id: "core/edit-rows",
|
id: "core/edit-rows",
|
||||||
width: "200px",
|
width: "200px",
|
||||||
submenu: [
|
submenu: [
|
||||||
@ -566,7 +572,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ label: "Edit columns",
|
{
|
||||||
|
label: "Edit columns",
|
||||||
id: "core/edit-columns",
|
id: "core/edit-columns",
|
||||||
width: "200px",
|
width: "200px",
|
||||||
submenu: [
|
submenu: [
|
||||||
@ -580,7 +587,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{ label: "View",
|
{
|
||||||
|
label: "View",
|
||||||
id: "core/view",
|
id: "core/view",
|
||||||
width: "200px",
|
width: "200px",
|
||||||
submenu: [
|
submenu: [
|
||||||
|
@ -342,5 +342,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
label: "Cells in rows into columns...",
|
label: "Cells in rows into columns...",
|
||||||
click: doTransposeRowsIntoColumns
|
click: doTransposeRowsIntoColumns
|
||||||
}
|
}
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
});
|
});
|
@ -284,5 +284,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
label: "Move column right",
|
label: "Move column right",
|
||||||
click: function() { doMoveColumnBy(1); }
|
click: function() { doMoveColumnBy(1); }
|
||||||
}
|
}
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
@ -318,15 +318,18 @@ div.grid-layout.layout-full > table {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
div.grid-layout > table > tbody > tr > th, div.grid-layout > table > tbody > tr > td {
|
div.grid-layout > table > tbody > tr > th,
|
||||||
|
div.grid-layout > table > tbody > tr > td {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
div.grid-layout.grid-layout-for-text > table > tbody > tr > th, div.grid-layout.grid-layout-for-text > table > tbody > tr > td {
|
div.grid-layout.grid-layout-for-text > table > tbody > tr > th,
|
||||||
|
div.grid-layout.grid-layout-for-text > table > tbody > tr > td {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
div.grid-layout.grid-layout-for-ui > table > tbody > tr > th, div.grid-layout.grid-layout-for-ui > table > tbody > tr > td {
|
div.grid-layout.grid-layout-for-ui > table > tbody > tr > th,
|
||||||
|
div.grid-layout.grid-layout-for-ui > table > tbody > tr > td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
div.grid-layout.layout-normal {
|
div.grid-layout.layout-normal {
|
||||||
@ -405,7 +408,10 @@ img {
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
|
.ui-widget input,
|
||||||
|
.ui-widget select,
|
||||||
|
.ui-widget textarea,
|
||||||
|
.ui-widget button {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
@ -339,5 +339,3 @@ img.facet-choice-link {
|
|||||||
.scatterplot-selectors .scatterplot-dot-selector label.dot-big-label {
|
.scatterplot-selectors .scatterplot-dot-selector label.dot-big-label {
|
||||||
background-position: -48px -25px;
|
background-position: -48px -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,4 +60,3 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user