mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-31 10:49:35 -05:00
sortable.js: Use substring instead of startsWith on strings
IE11 doesn't support startsWith yet fixes #240
This commit is contained in:
parent
176643472e
commit
845b9f9ddc
1 changed files with 2 additions and 2 deletions
|
|
@ -28,12 +28,12 @@
|
|||
};
|
||||
|
||||
$.each($el.data(), function (i, v) {
|
||||
if (i.length > 8 && i.startsWith('sortable')) {
|
||||
if (i.length > 8 && i.substring(0, 8) === 'sortable') {
|
||||
options[i.charAt(8).toLowerCase() + i.substr(9)] = v;
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof options.group !== 'undefined' && typeof options.group.put === 'string' && options.group.put.startsWith('function:')) {
|
||||
if (typeof options.group !== 'undefined' && typeof options.group.put === 'string' && options.group.put.substring(0, 9) === 'function:') {
|
||||
var module = icinga.module($el.closest('.icinga-module').data('icingaModule'));
|
||||
options.group.put = module.object[options.group.put.substr(9)];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue