Changeset 414 for Dev/branches/rest-dojo-ui/client/rft/pages
- Timestamp:
- 11/24/12 18:13:18 (12 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft/pages
- Files:
-
- 3 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'); -
Dev/branches/rest-dojo-ui/client/rft/pages/surveys.html
r410 r414 14 14 </div> 15 15 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'bottom'" style="height: 40px;"> 16 <button data-dojo-type="dijit/form/Button" class="blue" data-dojo-props="baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconNew'" data-dojo-attach-event="onClick:_onNewSurvey">New survey</button>17 16 </div> 18 17 </div> … … 33 32 </div> 34 33 34 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'bottom'" style="height: 40px;"> 35 <button data-dojo-type="dijit/form/Button" class="blue" data-dojo-props="baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconNew'" data-dojo-attach-event="onClick:_onNewSurvey">New survey</button> 36 </div> 37 35 38 </div> -
Dev/branches/rest-dojo-ui/client/rft/pages/surveys.js
r410 r414 22 22 .then(function(survey) { 23 23 Router.go('/survey/'+store.getIdentity(survey)); 24 },function(err){ 25 Content.notify(err.reason,'error'); 24 26 }); 25 27 },
Note: See TracChangeset
for help on using the changeset viewer.