mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-11 16:06:02 -06:00
Fix an issue where pgAdmin4 does not display properly on the IE browser. It's a regression of #5133
There are some changes in the backgrid-select-all.js in vendor directory and the vendor directory is excluded from webpack compiling. We used ES6 code syntax which does not work on IE. Code changes are done to use ES5 syntax. Fixes #5219
This commit is contained in:
parent
6a90f7c2e1
commit
5262405f06
@ -103,7 +103,9 @@
|
||||
command.moveUp() || command.moveDown()) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.model.trigger("backgrid:edited", this.model, this.column, command);
|
||||
if(this.model) {
|
||||
this.model.trigger("backgrid:edited", this.model, this.column, command);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -122,15 +124,15 @@
|
||||
Renders a checkbox in a table cell.
|
||||
*/
|
||||
render: function () {
|
||||
let id = `selectall-${_.uniqueId(this.column.get('name'))}`;
|
||||
this.$el.empty().append(`
|
||||
<div class="custom-control custom-checkbox custom-checkbox-no-label">
|
||||
<input tabindex="-1" type="checkbox" class="custom-control-input" id="${id}" />
|
||||
<label class="custom-control-label" for="${id}">
|
||||
<span class="sr-only">Select All<span>
|
||||
</label>
|
||||
</div>
|
||||
`);
|
||||
var id = 'selectall-' + _.uniqueId(this.column.get('name'));
|
||||
this.$el.empty().append([
|
||||
'<div class="custom-control custom-checkbox custom-checkbox-no-label">',
|
||||
' <input tabindex="-1" type="checkbox" class="custom-control-input" id="'+ id +'" />',
|
||||
' <label class="custom-control-label" for="'+ id +'">',
|
||||
' <span class="sr-only">Select All<span>',
|
||||
' </label>',
|
||||
'</div>'
|
||||
].join('\n'));
|
||||
this.delegateEvents();
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user