Fix for default parameters in JS functions IE (#8973)

* Small fix for IE which doesn't support default parameters in the function definition

* Stylistic changes for better comprehension
This commit is contained in:
Ivan Nieto 2021-01-05 21:25:30 -06:00 committed by GitHub
parent 382fb31670
commit 72f9fe444d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,11 @@
// Make the edit/delete buttons
function genericActionsFormatter(owner_name, element_name = '') {
function genericActionsFormatter(owner_name, element_name) {
if (!element_name) {
element_name = '';
}
return function (value,row) {
var actions = '<nobr>';