summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/htdocs/create
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-10-29 17:47:19 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-10-29 17:47:19 +0000
commitd1146122184e153e1fac944eafe3535274859ca0 (patch)
tree368b450c8be8f42eeb13a071f6bce9fcc61ec91f /sca-cpp/trunk/modules/edit/htdocs/create
parent11adbc1719db790bd485f4f511b2740c151e5872 (diff)
Better network connectivity status reporting and handling of orientation change events.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1194948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/create')
-rw-r--r--sca-cpp/trunk/modules/edit/htdocs/create/index.html13
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>