deprecated jQuery.delegate() to jQuery.on()

This commit is contained in:
djmaze 2020-07-25 13:50:46 +02:00
parent 281a5df732
commit a12a3815f9
2 changed files with 2 additions and 2 deletions

View file

@ -831,7 +831,7 @@
var Modal = function (element, options) {
this.options = options
this.$element = $(element)
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
}

File diff suppressed because one or more lines are too long