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:
David Huynh 2011-08-04 20:37:14 +00:00
parent c9db107d7e
commit bad7266534
90 changed files with 10939 additions and 10920 deletions

View File

@ -19,7 +19,8 @@
<tr><td>Source ID (optional)</td>
<td colspan="2"><input type="text" size="60" id="freebase-loading-source-id" bind="source_id" /></td>
</tr>
<tr><td colspan="3">
<tr>
<td colspan="3">
<p class="body-text">Note: Your data will only be loaded into
<a href="http://www.sandbox-freebase.com/" target="_blank">Sandbox</a>.
Sandbox is where everyone can experiment with Freebase technologies without disruption

View File

@ -174,9 +174,10 @@ FreebaseLoadingDialog.prototype._load = function() {
var doLoad = function() {
var dismissBusy = DialogSystem.showBusy();
$.post("/command/freebase/upload-data",
$.post(
"/command/freebase/upload-data",
{
project: theProject.id,
"project" : theProject.id,
"qa" : qa,
"engine" : JSON.stringify(ui.browsingEngine.getJSON()),
"source_name" : self._elmts.source_name.val(),

View File

@ -150,4 +150,3 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
}
};
}

View File

@ -49,7 +49,12 @@ function populatePreferences(prefs) {
$('<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) {
var tr = table.insertRow(table.rows.length);
preferenceUIs.push(new PreferenceUI(tr, k, prefs[k]));

View File

@ -94,7 +94,9 @@ DataTableView.prototype.render = function() {
'<div class="viewpanel-sorting" bind="sortingControls"></div>' +
'<div class="viewpanel-paging" bind="pagingControls"></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);
@ -337,7 +339,8 @@ DataTableView.prototype._renderDataTable = function(table) {
{ row: row.i, starred: newStarred },
null,
{},
{ onDone: function(o) {
{
onDone: function(o) {
row.starred = newStarred;
renderRow(tr, r, row, even);
}
@ -358,7 +361,8 @@ DataTableView.prototype._renderDataTable = function(table) {
{ row: row.i, flagged: newFlagged },
null,
{},
{ onDone: function(o) {
{
onDone: function(o) {
row.flagged = newFlagged;
renderRow(tr, r, row, even);
}
@ -482,7 +486,8 @@ DataTableView.prototype._addSortingCriterion = function(criterion, alone) {
DataTableView.prototype._createMenuForAllColumns = function(elmt) {
var self = this;
var menu = [
{ label: "Facet",
{
label: "Facet",
id: "core/facets",
width: "200px",
submenu: [
@ -523,7 +528,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
]
},
{},
{ label: "Edit rows",
{
label: "Edit rows",
id: "core/edit-rows",
width: "200px",
submenu: [
@ -566,7 +572,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
}
]
},
{ label: "Edit columns",
{
label: "Edit columns",
id: "core/edit-columns",
width: "200px",
submenu: [
@ -580,7 +587,8 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
]
},
{},
{ label: "View",
{
label: "View",
id: "core/view",
width: "200px",
submenu: [

View File

@ -342,5 +342,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
label: "Cells in rows into columns...",
click: doTransposeRowsIntoColumns
}
]);
]
);
});

View File

@ -284,5 +284,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
label: "Move column right",
click: function() { doMoveColumnBy(1); }
}
]);
]
);
});

View File

@ -318,15 +318,18 @@ div.grid-layout.layout-full > table {
width: 100%;
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;
text-align: left;
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;
}
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;
}
div.grid-layout.layout-normal {
@ -405,7 +408,10 @@ img {
font-family: 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-size: inherit;
}

View File

@ -339,5 +339,3 @@ img.facet-choice-link {
.scatterplot-selectors .scatterplot-dot-selector label.dot-big-label {
background-position: -48px -25px;
}

View File

@ -60,4 +60,3 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
overflow: auto;
padding: 10px;
}