Changeset 529 for Dev/trunk/src/client/qed-client/pages/questions.js
- Timestamp:
- 03/23/14 22:58:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/questions.js
r495 r529 50 50 }, 51 51 onDeleteQuestion: function(question) { 52 if ( !confirm("Are you sure you want to delete this question?") ) { 53 return; 54 } 52 55 questions.remove(question) 53 56 .then(lang.hitch(this,function(){ … … 62 65 }, 63 66 onPublishQuestion: function(question) { 67 if ( !confirm("After publication the question cannot be modified anymore, are you sure?") ) { 68 return; 69 } 64 70 question.publicationDate = new Date(); 65 71 questions.save(question)
Note: See TracChangeset
for help on using the changeset viewer.