Changeset 238 for Dev/branches/jos-branch/js
- Timestamp:
- 01/18/12 16:39:27 (13 years ago)
- Location:
- Dev/branches/jos-branch/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/js/questionEditorScripts.js
r237 r238 24 24 // Properties 25 25 this.uid = null; // The uid of the question contained in this editor 26 this.saved = false; // Whether or not the question displayed in the editor has been saved already. 26 27 var me = this; // Retarded self-reference because: Javascript 27 28 this.element = null; // The parent div element containing the questionEditor … … 73 74 this.init = function() { 74 75 // Outer div 76 this.saved = false; 75 77 me.element = ce("div"); 76 78 me.element.className = "smallFrame questionEditor"; … … 248 250 } 249 251 this.discard = function() { 250 me.element.parentNode.removeChild(me.element); 251 me.init(); 252 sequencer.state.loaded = true; 253 sequencer.state.editing = false; 252 debugger; 253 me.element.parentNode.removeChild(me.element); 254 me.init(); 255 sequencer.state.loaded = true; 256 sequencer.state.editing = false; 257 sequencer.survey.questions.upToDate[sequencer.survey.questions.uids.indexOf(me.uid)] = false; 258 updateSequencer(); 259 254 260 } 255 261 this.reset = function() { -
Dev/branches/jos-branch/js/sequencerScripts.js
r237 r238 759 759 //console.log(requestString); 760 760 newAjaxRequest(requestString, "savesession.php", function(result){ 761 //console.log(result.responseText);761 console.log(result.responseText); 762 762 }, true); 763 763 }
Note: See TracChangeset
for help on using the changeset viewer.