summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/hosting/server/htdocs/create/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/hosting/server/htdocs/create/index.html')
-rw-r--r--sca-cpp/trunk/hosting/server/htdocs/create/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/sca-cpp/trunk/hosting/server/htdocs/create/index.html b/sca-cpp/trunk/hosting/server/htdocs/create/index.html
index 3fc26b8515..daae21202d 100644
--- a/sca-cpp/trunk/hosting/server/htdocs/create/index.html
+++ b/sca-cpp/trunk/hosting/server/htdocs/create/index.html
@@ -72,6 +72,7 @@ function saveapp(name, entryxml) {
apps.put(name, savedappxml, function(e) {
if (e) {
if (e.code && e.code == 404) {
+ alert('name taken');
errorstatus('App name is taken, please pick another name');
workingstatus(false);
return false;
@@ -115,6 +116,7 @@ $('createAppForm').onsubmit = function() {
// Check reserved app names
var reserved = mklist('account', 'app', 'cache', 'clone', 'create', 'delete', 'graph', 'home', 'login', 'new', 'page', 'proxy', 'public', 'private', 'info', 'store');
if (!isNull(assoc(name, map(function(r) { return mklist(r, r); }, reserved)))) {
+ alert('invalid name');
errorstatus('App name is taken, please pick another name');
return false;
}
@@ -129,9 +131,9 @@ $('createAppForm').onsubmit = function() {
/**
* Cancel creating an app.
*/
-$('createAppCancelButton').onclick = function() {
+ui.onclick($('createAppCancelButton'), function(e) {
history.back();
-};
+});
/**
* Show the status.