Changeset 490 for Dev/trunk/src/client/qed-client/pages/response.js
- Timestamp:
- 03/08/14 22:51:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/response.js
r487 r490 1 1 define([ 2 "../app/Content",3 2 "../app/Page", 4 "../lib/async",5 3 "../model/classes/responses", 6 4 "dojo/_base/declare", … … 13 11 "require", 14 12 "dojo/text!./templates/response.html" 15 ], function( Content, Page, async, responses, declare, event, json, lang, all, request, when, require, template) {13 ], function(Page, responses, declare, event, json, lang, all, request, when, require, template) { 16 14 return declare([Page],{ 17 15 contextRequire: require, … … 60 58 .then(lang.hitch(this,function(response){ 61 59 this.response = response; 62 Content.notify("Your response is saved.");63 }), function(err){64 Content.notify(err,'error');65 }) ;60 this.notify("Your response is saved."); 61 }), lang.hitch(this,function(err){ 62 this.notify(err.error,'error'); 63 })); 66 64 }, 67 65 _onSubmit: function(e) { … … 89 87 .then(lang.hitch(this,function(res){ 90 88 this._showInfo("<div>Your response has been deleted, no answers have been saved.</div>"); 91 Content.notify("Your response is deleted.");92 }), function(err){93 Content.notify(err,'error');94 }) ;89 this.notify("Your response is deleted."); 90 }), lang.hitch(this,function(err){ 91 this.notify(err.error,'error'); 92 })); 95 93 if ( e ) { event.stop(e); } 96 94 return false;
Note: See TracChangeset
for help on using the changeset viewer.