@osimatic/helpers-js 1.5.38 → 1.5.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,6 +102,7 @@ class MultipleActionInTable {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
static getDivBtn(table) {
|
|
105
|
+
const isJquery = typeof jQuery !== 'undefined' && table instanceof jQuery;
|
|
105
106
|
table = toEl(table);
|
|
106
107
|
if (!table) {
|
|
107
108
|
return null;
|
|
@@ -109,11 +110,11 @@ class MultipleActionInTable {
|
|
|
109
110
|
const divTableResponsive = table.parentElement;
|
|
110
111
|
let divBtn = divTableResponsive.nextElementSibling;
|
|
111
112
|
if (divBtn && divBtn.classList.contains('action_multiple_buttons')) {
|
|
112
|
-
return divBtn;
|
|
113
|
+
return isJquery ? jQuery(divBtn) : divBtn;
|
|
113
114
|
}
|
|
114
115
|
divBtn = divTableResponsive.parentElement?.parentElement?.parentElement?.nextElementSibling;
|
|
115
116
|
if (divBtn && divBtn.classList.contains('action_multiple_buttons')) {
|
|
116
|
-
return divBtn;
|
|
117
|
+
return isJquery ? jQuery(divBtn) : divBtn;
|
|
117
118
|
}
|
|
118
119
|
return null;
|
|
119
120
|
}
|