diff --git a/src/main/webapp/scripts/index.js b/src/main/webapp/scripts/index.js index 6996adbb7..e1e2f07b8 100644 --- a/src/main/webapp/scripts/index.js +++ b/src/main/webapp/scripts/index.js @@ -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) { diff --git a/src/main/webapp/scripts/project/browsing-engine.js b/src/main/webapp/scripts/project/browsing-engine.js index 03ff96303..3ff565760 100644 --- a/src/main/webapp/scripts/project/browsing-engine.js +++ b/src/main/webapp/scripts/project/browsing-engine.js @@ -59,7 +59,7 @@ BrowsingEngine.prototype._initializeUI = function() { '
by choosing a facet or filter method from the menus at the top of each column.
' + - 'Not sure how to get started? Watch this screencast.
' + + 'Not sure how to get started? Watch these screencasts.
' + 'about making mistakes. Every change you make will be shown here, and you can undo changes at any point.
' + - '' + + '' + '