diff options
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/create/index.html')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/create/index.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/create/index.html b/sca-cpp/trunk/modules/edit/htdocs/create/index.html index 35c7733c38..c74c00950d 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/create/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/create/index.html @@ -20,7 +20,10 @@ <div id="bodydiv" class="bodydiv"> <table style="width: 100%;"> -<tr><td><h2><span id="h1"></span></h2></td></tr> +<tr> +<td><h2><span id="h1"></span></h2></td> +<td style="vertical-align: middle; text-align: right;"><span id="status" style="font-weight: bold; color: #808080;"></span></td> +</tr> </table> <table style="width: 100%;"> @@ -72,14 +75,18 @@ $('createAppForm').onsubmit = function() { var name = $('appName').value; if (name == '') return false; + showStatus('Saving'); // Clone the '.new' app template var title = $('appTitle').value; var app = mklist(mklist("'entry", mklist("'title", title != ''? title : name), mklist("'id", 'new'))); var entry = atom.writeATOMEntry(valuesToElements(app)); dashboards.put(name, car(entry), function(e) { - if (e) + if (e) { + showStatus('Local copy'); return false; + } + showStatus('Saved'); // Open it in the page editor ui.navigate('/#view=page&app=' + name, '_view'); @@ -95,6 +102,8 @@ $('createAppCancelButton').onclick = function() { history.back(); }; +showStatus(defaultStatus()); + </script> </div> |