From 72f9fe444d199f3592ff203804a216e1e6bf4e1f Mon Sep 17 00:00:00 2001 From: Ivan Nieto Date: Tue, 5 Jan 2021 21:25:30 -0600 Subject: [PATCH] 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 --- resources/views/partials/bootstrap-table.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 7777c030b3..da8c4e30f3 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -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 = '';