Tweak focus/blur functions for JQuery upgrade.
Fix incorrectly scoped selector.
This commit is contained in:
@@ -10,8 +10,8 @@ define(["js/views/validation", "codemirror", "js/models/course_update",
|
||||
// collection is CourseUpdateCollection
|
||||
events: {
|
||||
"click .new-update-button" : "onNew",
|
||||
"click #course-update-view .save-button" : "onSave",
|
||||
"click #course-update-view .cancel-button" : "onCancel",
|
||||
"click .save-button" : "onSave",
|
||||
"click .cancel-button" : "onCancel",
|
||||
"click .post-actions > .edit-button" : "onEdit",
|
||||
"click .post-actions > .delete-button" : "onDelete"
|
||||
},
|
||||
|
||||
@@ -12,8 +12,8 @@ function(BaseView, _, str, gettext, groupEditTemplate) {
|
||||
events: {
|
||||
'click .action-close': 'removeGroup',
|
||||
'change .group-name': 'changeName',
|
||||
'focus .groups-fields input': 'onFocus',
|
||||
'blur .groups-fields input': 'onBlur'
|
||||
'focus .group-name': 'onFocus',
|
||||
'blur .group-name': 'onBlur'
|
||||
},
|
||||
|
||||
className: function() {
|
||||
|
||||
Reference in New Issue
Block a user