cleaning up some
This commit is contained in:
parent
80d990cd1b
commit
5c800f6f2b
@ -15,6 +15,7 @@ define(['jquery',
|
|||||||
options = options || {};
|
options = options || {};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* initial renering */
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.find('.lesson-content').html(this.model.get('content'));
|
this.$el.find('.lesson-content').html(this.model.get('content'));
|
||||||
this.$el.find('.attack-feedback').hide();
|
this.$el.find('.attack-feedback').hide();
|
||||||
@ -45,7 +46,6 @@ define(['jquery',
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
makeFormsAjax: function () {
|
makeFormsAjax: function () {
|
||||||
this.$form = $('form.attack-form');
|
this.$form = $('form.attack-form');
|
||||||
// turn off standard submit
|
// turn off standard submit
|
||||||
@ -56,6 +56,7 @@ define(['jquery',
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* form submission handling */
|
||||||
onFormSubmit: function (e) {
|
onFormSubmit: function (e) {
|
||||||
var curForm = e.currentTarget; // the form from which the
|
var curForm = e.currentTarget; // the form from which the
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -115,6 +116,8 @@ define(['jquery',
|
|||||||
this.$curOutput.show(400)
|
this.$curOutput.show(400)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* create, show & hide pagination controls */
|
||||||
|
|
||||||
addPaginationControls: function() {
|
addPaginationControls: function() {
|
||||||
var pagingControlsDiv;
|
var pagingControlsDiv;
|
||||||
this.$el.html();
|
this.$el.html();
|
||||||
@ -134,7 +137,6 @@ define(['jquery',
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/* show & hide pagination controls */
|
|
||||||
showPrevPageButton: function() {
|
showPrevPageButton: function() {
|
||||||
$('span.glyphicon-class.glyphicon.glyphicon-circle-arrow-left.show-prev-page').show();
|
$('span.glyphicon-class.glyphicon.glyphicon-circle-arrow-left.show-prev-page').show();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user