Changeset 494 for Dev/trunk/src/client/qed-client/pages
- Timestamp:
- 03/09/14 22:03:19 (11 years ago)
- Location:
- Dev/trunk/src/client/qed-client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client
- Property svn:ignore
-
old new 1 1 2 ### begin grunt-svn-ignore managed ignores3 ### edits will be overwritten when grunt svn-ignore is run4 session.js5 ### end grunt-svn-ignore managed ignores
-
- Property svn:ignore
-
Dev/trunk/src/client/qed-client/pages/index.js
r490 r494 15 15 //this.btnContentCreate.on("click",function(){ Router.go("/sessions"); }); 16 16 //this.btnContentFacilitate.on("click",function(){ Router.go("/run"); }); 17 this. btnSurveys.on("click",function(){17 this.own(this.btnSurveys.on("click",function(){ 18 18 Router.go(surveys.getCollectionPath()); 19 }) ;20 this. btnQuestions.on("click",function(){19 })); 20 this.own(this.btnQuestions.on("click",function(){ 21 21 Router.go(questions.getCollectionPath()); 22 }) ;22 })); 23 23 //this.btnApplications.on("click",function(){Router.go("/applications");}); 24 24 //this.btnDashboards.on("click",function(){ Router.go("/dashboards"); }); -
Dev/trunk/src/client/qed-client/pages/question.js
r493 r494 19 19 if ( this._started ) { return; } 20 20 this.inherited(arguments); 21 this. propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange'));22 this. contentList.on('change',lang.hitch(this,'_handleContentChange'));21 this.own(this.propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange'))); 22 this.own(this.contentList.on('change',lang.hitch(this,'_handleContentChange'))); 23 23 this._load(); 24 24 }, … … 40 40 _updateObject: function() { 41 41 var pValid = this.propertiesForm.validate(); 42 if ( pValid ) { 43 lang.mixin(this.object,this.propertiesForm.get('value')); 44 } 42 lang.mixin(this.object,this.propertiesForm.get('value')); 45 43 var cValid = this.contentList.validate(); 46 if ( cValid ) { 47 this.object.content = this.contentList.get('value'); 48 } 44 this.object.content = this.contentList.get('value'); 49 45 this._isValid = pValid && cValid; 50 46 return this._isValid; -
Dev/trunk/src/client/qed-client/pages/survey.js
r493 r494 23 23 this._setupQuestionBrowser(); 24 24 this._setupListView(); 25 this. questionList.on('change',lang.hitch(this,'_handleQuestionsChange'));25 this.own(this.questionList.on('change',lang.hitch(this,'_handleQuestionsChange'))); 26 26 this._load(); 27 27 }, -
Dev/trunk/src/client/qed-client/pages/surveyRun.js
r493 r494 26 26 if ( this._started ) { return; } 27 27 this.inherited(arguments); 28 this. surveyRunWidget.on("change",lang.hitch(this,'_onPropChange'));28 this.own(this.surveyRunWidget.on("change",lang.hitch(this,'_onPropChange'))); 29 29 this._load(); 30 30 }, … … 98 98 _updateObject: function() { 99 99 this._isValid = this.surveyRunWidget.validate(); 100 if ( this._isValid ) { 101 lang.mixin(this.object,this.surveyRunWidget.get('value')); 102 } 100 lang.mixin(this.object,this.surveyRunWidget.get('value')); 103 101 return this._isValid; 104 102 },
Note: See TracChangeset
for help on using the changeset viewer.