Commit fcb369a6 by Thomas Young

added line with variable declarations to stop these being global, removed a bit…

added line with variable declarations to stop these being global, removed a bit of spurious whitespace at the end of another line
parent 6aa1a849
......@@ -31,6 +31,7 @@ define(["js/views/baseview", "jquery", "js/views/edit_textbook", "js/views/show_
"click .new-button": "addOne"
},
addOne: function(e) {
var $sectionEl, $inputEl;
if(e && e.preventDefault) { e.preventDefault(); }
this.collection.add([{editing: true}]); // (render() call triggered here)
// find the outer 'section' tag for the newly added textbook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment