Merge "Fix "jQuery.fn.click() event shorthand is deprecated" warning"
This commit is contained in:
commit
dc2a2fd577
@ -83,7 +83,7 @@
|
||||
var hzTableCtrl = ctrls[0];
|
||||
var stTableCtrl = ctrls[1];
|
||||
|
||||
element.click(clickHandler);
|
||||
element.on('click', clickHandler);
|
||||
|
||||
/*
|
||||
* watch the table state for changes
|
||||
|
@ -55,7 +55,7 @@
|
||||
////////////////////
|
||||
|
||||
function link(scope, element, attrs, hzTableCtrl) {
|
||||
element.click(clickHandler);
|
||||
element.on('click', clickHandler);
|
||||
|
||||
// select or unselect row
|
||||
function clickHandler() {
|
||||
|
@ -228,7 +228,7 @@ horizon.forms.add_password_fields_reveal_buttons = function (el) {
|
||||
$input.closest('div').addClass("has-feedback");
|
||||
$('<span>').addClass(
|
||||
"form-control-feedback fa fa-eye password-icon"
|
||||
).insertAfter($input).click(function () {
|
||||
).insertAfter($input).on('click', function () {
|
||||
var $icon = $(this);
|
||||
|
||||
if ($input.attr('type') === 'password') {
|
||||
|
@ -334,7 +334,7 @@ horizon.datatables.confirm = function(action) {
|
||||
modal.css('z-index', child_backdrop.css('z-index')+10);
|
||||
}
|
||||
|
||||
modal.find('.' + confirmCssClass).click(function () {
|
||||
modal.find('.' + confirmCssClass).on('click', function () {
|
||||
var $form = $action.closest('form');
|
||||
var el = document.createElement("input");
|
||||
el.type = 'hidden';
|
||||
|
Loading…
Reference in New Issue
Block a user