remove the "Delete" option in the main view, as it just confuses (doesn't delete the app, just forgets it in the browser)
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/edfe0b1d Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/edfe0b1d Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/edfe0b1d Branch: refs/heads/0.6.0 Commit: edfe0b1d78b2e293cf521ae3d36a9a224eeb791c Parents: beff96c Author: Alex Heneveld <[email protected]> Authored: Thu Oct 31 19:47:23 2013 -0700 Committer: Alex Heneveld <[email protected]> Committed: Thu Oct 31 19:47:23 2013 -0700 ---------------------------------------------------------------------- usage/jsgui/src/main/webapp/assets/js/view/home.js | 9 +-------- usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html | 3 --- .../jsgui/src/main/webapp/assets/tpl/home/applications.html | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/edfe0b1d/usage/jsgui/src/main/webapp/assets/js/view/home.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/js/view/home.js b/usage/jsgui/src/main/webapp/assets/js/view/home.js index 828e623..4845bd4 100644 --- a/usage/jsgui/src/main/webapp/assets/js/view/home.js +++ b/usage/jsgui/src/main/webapp/assets/js/view/home.js @@ -17,8 +17,7 @@ define([ tagName:"div", events:{ 'click #add-new-application':'createApplication', - 'click .addApplication':'createApplication', - 'click .delete':'deleteApplication' + 'click .addApplication':'createApplication' }, summariesView:{}, @@ -132,12 +131,6 @@ define([ that.collection.fetch({reset:true}); }).modal('show') } - }, - - deleteApplication:function (event) { - // call Backbone destroy() which does HTTP DELETE on the model - this.collection.get(event.currentTarget['id']).destroy({wait:true}) - this.refresh(this) } }) http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/edfe0b1d/usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html b/usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html index 29218c1..0377821 100644 --- a/usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html +++ b/usage/jsgui/src/main/webapp/assets/tpl/home/app-entry.html @@ -1,6 +1,3 @@ <!-- Application entry template inside the main application page --> <td><a href="#<%= link %>"><%= name %></a></td> <td><%= status %></td> -<td style="text-align:center;"> - <button id="<%= cid %>" class="btn btn-danger btn-mini delete" type="button">Delete</button> -</td> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/edfe0b1d/usage/jsgui/src/main/webapp/assets/tpl/home/applications.html ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/tpl/home/applications.html b/usage/jsgui/src/main/webapp/assets/tpl/home/applications.html index f94a365..c561003 100644 --- a/usage/jsgui/src/main/webapp/assets/tpl/home/applications.html +++ b/usage/jsgui/src/main/webapp/assets/tpl/home/applications.html @@ -20,7 +20,6 @@ <thead> <th>Application</th> <th>Status</th> - <th>Options</th> </thead> <tbody id="applications-table-body"> </tbody>
