Ignore:
Timestamp:
03/09/14 22:03:19 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Removed all Coffeescript from codebase (build process is still there).
  • Nicer message on failed login.
  • Own all event subscriptions from widgets.
  • Update objects in _ObjectPage with invalid info too, or our refresh will overwrite what user did.
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  
        11
        2 ### begin grunt-svn-ignore managed ignores
        3 ### edits will be overwritten when grunt svn-ignore is run
        4 session.js
        5 ### end grunt-svn-ignore managed ignores
  • Dev/trunk/src/client/qed-client/pages/index.js

    r490 r494  
    1515            //this.btnContentCreate.on("click",function(){ Router.go("/sessions"); });
    1616            //this.btnContentFacilitate.on("click",function(){ Router.go("/run"); });
    17             this.btnSurveys.on("click",function(){
     17            this.own(this.btnSurveys.on("click",function(){
    1818                Router.go(surveys.getCollectionPath());
    19             });
    20             this.btnQuestions.on("click",function(){
     19            }));
     20            this.own(this.btnQuestions.on("click",function(){
    2121                Router.go(questions.getCollectionPath());
    22             });
     22            }));
    2323            //this.btnApplications.on("click",function(){Router.go("/applications");});
    2424            //this.btnDashboards.on("click",function(){ Router.go("/dashboards"); });
  • Dev/trunk/src/client/qed-client/pages/question.js

    r493 r494  
    1919            if ( this._started ) { return; }
    2020            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')));
    2323            this._load();
    2424        },
     
    4040        _updateObject: function() {
    4141            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'));
    4543            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');
    4945            this._isValid = pValid && cValid;
    5046            return this._isValid;
  • Dev/trunk/src/client/qed-client/pages/survey.js

    r493 r494  
    2323            this._setupQuestionBrowser();
    2424            this._setupListView();
    25             this.questionList.on('change',lang.hitch(this,'_handleQuestionsChange'));
     25            this.own(this.questionList.on('change',lang.hitch(this,'_handleQuestionsChange')));
    2626            this._load();
    2727        },
  • Dev/trunk/src/client/qed-client/pages/surveyRun.js

    r493 r494  
    2626            if ( this._started ) { return; }
    2727            this.inherited(arguments);
    28             this.surveyRunWidget.on("change",lang.hitch(this,'_onPropChange'));
     28            this.own(this.surveyRunWidget.on("change",lang.hitch(this,'_onPropChange')));
    2929            this._load();
    3030        },
     
    9898        _updateObject: function() {
    9999            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'));
    103101            return this._isValid;
    104102        },
Note: See TracChangeset for help on using the changeset viewer.