Linked to screencasts and wiki documentation.
Checked if the user has selected any file yet before creating a project. git-svn-id: http://google-refine.googlecode.com/svn/trunk@585 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
9641f28fe0
commit
63cf331c89
@ -3,8 +3,9 @@ function onClickUploadFileButton(evt) {
|
||||
if (! $.trim(projectName).length) {
|
||||
window.alert("You must specify a project name.");
|
||||
|
||||
evt.preventDefault();
|
||||
return false;
|
||||
} else if ($("#project-file-input")[0].files.length === 0) {
|
||||
window.alert("You must specify select a file to upload.");
|
||||
|
||||
} else {
|
||||
$("#file-upload-form").attr("action",
|
||||
"/command/create-project-from-upload?" + [
|
||||
@ -16,7 +17,12 @@ function onClickUploadFileButton(evt) {
|
||||
"limit=" + $("#limit-input")[0].value,
|
||||
"guess-value-type=" + $("#guess-value-type-input")[0].checked
|
||||
].join("&"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
evt.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
function formatDate(d) {
|
||||
|
@ -59,7 +59,7 @@ BrowsingEngine.prototype._initializeUI = function() {
|
||||
'<div class="browsing-panel-help" bind="help">' +
|
||||
'<h1>Explore data ...</h1>' +
|
||||
'<p>by choosing a facet or filter method from the menus at the top of each column.</p>' +
|
||||
'<p>Not sure how to get started? Watch this screencast.</p>' +
|
||||
'<p>Not sure how to get started? <a href="http://www.vimeo.com/groups/gridworks" target="_blank">Watch these screencasts</a>.</p>' +
|
||||
'</div>' +
|
||||
'<div class="browsing-panel-header" bind="header">' +
|
||||
'<div class="browsing-panel-indicator" bind="indicator">' +
|
||||
|
@ -39,7 +39,7 @@ HistoryWidget.prototype._render = function() {
|
||||
'<div class="history-panel-help" bind="helpDiv">' +
|
||||
'<h1>Don\'t worry ...</h1>' +
|
||||
'<p>about making mistakes. Every change you make will be shown here, and you can undo changes at any point.</p>' +
|
||||
'<p><a href="">Learn more »</a></p>' +
|
||||
'<p><a href="http://wiki.freebase.com/index.php?title=Gridworks" target="_blank">Learn more »</a></p>' +
|
||||
'</div>' +
|
||||
'<div class="history-panel-body" bind="bodyDiv">' +
|
||||
'<div class="history-past" bind="pastDiv"></div>' +
|
||||
|
Loading…
Reference in New Issue
Block a user