diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 02:28:47 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 02:28:47 +0000 |
commit | 49f4223605b4946a2bf6831262dd442375a4a929 (patch) | |
tree | 0cef0f1b857365e9d71d1c7c71e2116bd35b1d65 /sca-cpp/trunk/modules/edit/htdocs/store/index.html | |
parent | 09fdc02e7a412927582fe8b46080b44b0d63ba35 (diff) |
Simplify page navigations and optimize layout and event handling on touch devices. Optimize caching and minimize Ajax calls.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1126297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/store/index.html | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/store/index.html b/sca-cpp/trunk/modules/edit/htdocs/store/index.html index 3c79f6c780..1d96781801 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/store/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/store/index.html @@ -94,7 +94,7 @@ ui.showbody(); */ var editWidget = sca.component("EditWidget"); var store = sca.reference(editWidget, "store"); -var dashboard = sca.reference(editWidget, "dashboard"); +var dashboards = sca.reference(editWidget, "dashboards"); /** * Return the link to an app. @@ -117,6 +117,13 @@ function editApp(appname) { } /** + * View an app. + */ +function viewApp(appname) { + return window.open('/stats/?app=' + appname, '_self'); +} + +/** * Create an app. */ if (category == 'myapps') { @@ -126,13 +133,6 @@ if (category == 'myapps') { } /** - * Clone an app. - */ -function cloneApp(appname) { - return window.open('/clone/?app=' + appname, '_self'); -} - -/** * Get and display list of apps. */ function getapps(category) { @@ -150,10 +150,7 @@ function getapps(category) { apps += '<div class="box" style="width: 285px; display: inline-block; border: 1px; border-style: solid; border-color: #dcdcdc; border-collapse: collapse; margin: 5px; padding: 10px; vertical-align: top;">' apps += '<table><tr>'; apps += '<td>'; - apps += '<div>' + ui.ahref(applink(name), '_blank', '<img src="/public/app.png" width="50" height="50" style="height: 50px; width: 50px; vertical-align: top; margin-right: 10px; margin-bottom: 5px;"></img>') + '</div>'; - apps += '<div><input type="button" class="greenbutton" id="cloneApp" value="' + clone + '" title="' + clone + ' this app" onclick="cloneApp(\'' + name + '\');"></div>'; - if (category == 'myapps') - apps += '<div><input type="button" id="editApp" class="bluebutton" value="Edit" title="Edit this app" onclick="editApp(\'' + name + '\');"></div>'; + apps += '<div>' + ui.ahref('/stats/?app=' + name, '_self', '<img src="/public/app.png" width="50" height="50" style="height: 50px; width: 50px; vertical-align: top; margin-right: 10px; margin-bottom: 5px;"></img>') + '</div>'; apps += '</td>'; apps += '<td class="tdw">'; apps += '<div style="font-weight: bold">' + ui.ahref(applink(name), '_blank', name) + '</div>'; @@ -164,7 +161,6 @@ function getapps(category) { apps += '<div>Feb 4, 2011</div>'; apps += '<br/>'; apps += '<div>' + title + '</div>'; - apps += '<br/>'; apps += '</td>'; apps += '</tr></table>'; apps += '</div>'; @@ -174,7 +170,7 @@ function getapps(category) { } if (category == 'myapps') - return dashboard.get('', display); + return dashboards.get('', display); return store.get(category, display); } |