Skip to content

Commit

Permalink
FIX Don't use deprecated jQuery functions (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 1, 2022
1 parent d0f49d1 commit 7a7c751
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/legacy/CMSMain.AddForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ $.entwine('ss', function($){
onadd: function() {
var self = this;
// See SelectionGroup.js for logic which hides / shows ParentID
this.find('#Form_AddForm_ParentID_Holder .TreeDropdownField').bind('change', function() {
this.find('#Form_AddForm_ParentID_Holder .TreeDropdownField').on('change', function() {
self.updateTypeList();
});
this.find(".SelectionGroup.parent-mode").bind('change', function() {
this.find(".SelectionGroup.parent-mode").on('change', function() {
self.updateTypeList();
});
if ($(".cms-add-form .parent-mode :input").val() == 'top') {
Expand Down
6 changes: 3 additions & 3 deletions client/src/legacy/CMSMain.EditForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $.entwine('ss', function($){

if (urlSegmentInput.length > 0) {
self._addActions();
this.bind('change', function(e) {
this.on('change', function(e) {
var origTitle = self.data('OrigVal');
var title = self.val();
self.data('OrigVal', title);
Expand Down Expand Up @@ -154,8 +154,8 @@ $.entwine('ss', function($){
// Constructor: onmatch
onmatch : function() {
var self = this;
this.find(':input[name=ParentType]').bind('click', function(e) {self._toggleSelection(e);});
this.find('.TreeDropdownField').bind('change', function(e) {self._changeParentId(e);});
this.find(':input[name=ParentType]').on('click', function(e) {self._toggleSelection(e);});
this.find('.TreeDropdownField').on('change', function(e) {self._changeParentId(e);});

this._changeParentId();
this._toggleSelection();
Expand Down

0 comments on commit 7a7c751

Please sign in to comment.