Remove deprecated jQuery "delegate" function.

Replaced by "on".
This commit is contained in:
Cory Lynch 2017-06-29 18:50:44 -04:00 committed by Tim Abbott
parent 274cabff98
commit 9f91d4c265
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ var exports = {};
}
$(function () {
$('#main_div').delegate('.inline-subscribe-button', 'click', function (e) {
$('#main_div').on('click', '.inline-subscribe-button', function (e) {
var $button = $(e.target);
var stream_name = $button.closest('.inline-subscribe').attr('data-stream-name');
var $status_message = $button.siblings('.inline-subscribe-error');