Changeset 497 for Dev/trunk/src/client/qed-client/pages
- Timestamp:
- 03/10/14 01:33:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/surveys.js
r490 r497 59 59 _onRunDetails: function(surveyRun) { 60 60 Router.go(surveyRuns.getObjectPath(surveyRun)); 61 }, 62 _onRunDelete: function(surveyRun) { 63 surveyRuns.remove(surveyRun) 64 .then(lang.hitch(this,function(){ 65 this.notify("SurveyRun successfully deleted."); 66 this.refreshRuns(); 67 }),lang.hitch(this,function(err){ 68 this.notify(err.error,'error'); 69 })); 61 70 }, 62 71 refresh: function() { … … 145 154 label: 'Details', 146 155 tooltip: 'Show details for this run', 147 icon: 'Details' 156 icon: 'Edit' 157 } 158 },{ 159 callback: lang.hitch(this,'_onRunDelete',surveyRun), 160 properties: { 161 label: 'Delete', 162 tooltip: 'Delete this run', 163 icon: 'Delete' 148 164 } 149 165 }]
Note: See TracChangeset
for help on using the changeset viewer.