mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update jQuery to 3.3.1. Fixes #3271
Patch by Aditya, with test enhancements from Anthony and Joao at Pivotal.
This commit is contained in:
committed by
Dave Page
parent
61d8072a8c
commit
9f13865777
@@ -381,10 +381,10 @@ define(['sources/gettext', 'underscore', 'jquery', 'backbone', 'backform',
|
||||
'header': true,
|
||||
}));
|
||||
}
|
||||
self.$el.find('input[type=checkbox]').first().focus();
|
||||
self.$el.find('input[type=checkbox]').first().trigger('focus');
|
||||
// Since blur event does not bubble we need to explicitly call parent's blur event.
|
||||
$(self.$el.find('input[type=checkbox]')).on('blur',function() {
|
||||
self.$el.blur();
|
||||
self.$el.trigger('blur');
|
||||
});
|
||||
|
||||
// Make row visible in when entering in edit mode.
|
||||
|
||||
@@ -395,7 +395,7 @@ define([
|
||||
|
||||
// Add button callback
|
||||
if (!(data.disabled || data.canAdd == false)) {
|
||||
$gridBody.find('button.add').first().click(function(e) {
|
||||
$gridBody.find('button.add').first().on('click',(e) => {
|
||||
e.preventDefault();
|
||||
var canAddRow = _.isFunction(data.canAddRow) ?
|
||||
data.canAddRow.apply(self, [self.model]) : true;
|
||||
|
||||
Reference in New Issue
Block a user