Changeset 415 for Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
- Timestamp:
- 12/04/12 16:29:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
r414 r415 40 40 }, 41 41 onNewQuestion: function() { 42 Deferred.when(store.add({type:'Question'})) 43 .then(lang.hitch(this,function(question){ 44 this.onEditQuestion(question); 45 })); 42 Router.go("/question/new"); 46 43 }, 47 44 onDeleteQuestion: function(question) { … … 50 47 Content.notify("Question deleted."); 51 48 },function(err){ 52 Content.notify(err .reason,'error');49 Content.notify(err,'error'); 53 50 }); 54 51 }, … … 62 59 Content.notify("Question published."); 63 60 },function(err){ 64 Content.notify(err .reason,'error');61 Content.notify(err,'error'); 65 62 }); 66 63 }
Note: See TracChangeset
for help on using the changeset viewer.