mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
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:
parent
382fb31670
commit
72f9fe444d
|
@ -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>';
|
||||
|
|
Loading…
Reference in a new issue