Changeset 414 for Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
- Timestamp:
- 11/24/12 18:13:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
r411 r414 20 20 'class': 'orange', 21 21 itemActions: { 22 Delete: { 23 callback: lang.hitch(this,"onDeleteQuestion"), 24 icon: 'Delete', 25 description: 'Delete question' 26 }, 22 27 Edit: { 23 28 callback: lang.hitch(this,"onEditQuestion"), … … 40 45 })); 41 46 }, 47 onDeleteQuestion: function(question) { 48 store.remove(store.getIdentity(question),store.getRevision(question)) 49 .then(function(){ 50 Content.notify("Question deleted."); 51 },function(err){ 52 Content.notify(err.reason,'error'); 53 }); 54 }, 42 55 onEditQuestion: function(question) { 43 56 Router.go("/question/"+question._id); … … 47 60 store.put(question) 48 61 .then(function(){ 49 Content.notify("Question pu plished.");62 Content.notify("Question published."); 50 63 },function(err){ 51 64 Content.notify(err.reason,'error');
Note: See TracChangeset
for help on using the changeset viewer.