diff --git a/src/main/webapp/js/goatApp/controller/LessonController.js b/src/main/webapp/js/goatApp/controller/LessonController.js index 7e6ca148b..128dd31fa 100644 --- a/src/main/webapp/js/goatApp/controller/LessonController.js +++ b/src/main/webapp/js/goatApp/controller/LessonController.js @@ -33,16 +33,16 @@ define(['jquery', this.lessonView.model = this.lessonContent; this.lessonView.render(); //load cookies/parameters view - - //load help view - //load title + //load title view (initially hidden) - //plan + //plan view (initially hidden) - //solution + //solution view (initially hidden) - //source + //source (initially hidden) + + //load help controls view (contextul to what helps are available) } }; diff --git a/src/main/webapp/js/goatApp/view/LessonContentView.js b/src/main/webapp/js/goatApp/view/LessonContentView.js index 0d9fb1466..b7df3f83a 100644 --- a/src/main/webapp/js/goatApp/view/LessonContentView.js +++ b/src/main/webapp/js/goatApp/view/LessonContentView.js @@ -23,15 +23,9 @@ function($,_,Backbone,JQueryForm,LessonData) { //success: GoatUtils.showResponse // post-submit callback, comment out after debugging success:this.reLoadView.bind(this), url:'attack?Screen=' + this.model.get('screenParam') + '&menu=' + this.model.get('menuParam'), - // other available options: - //url: url // override for form's 'action' attribute - //type: type // 'get' or 'post', override for form's 'method' attribute - //dataType: null // 'xml', 'script', or 'json' (expected server response type) - //clearForm: true // clear all form fields after successful submit - //resetForm: true // reset the form after successful submit - - // $.ajax options can be used here too, for example: - //timeout: 3000 + type:'GET' + // $.ajax options can be used here too, for example: + //timeout: 3000 }; //hook forms //TODO: clarify form selectors later $("form").ajaxForm(options);