Fixed jQuery issue related to modals
parent
4bd442f316
commit
cbcfecdbcc
|
@ -2,6 +2,8 @@
|
|||
|
||||
/* setup jsrenderer */
|
||||
(window as any).$ = require("jquery");
|
||||
(window as any).jQuery = $;
|
||||
|
||||
import * as jsrenderInit from "jsrender";
|
||||
const jsrender = jsrenderInit($);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ export const ModalFunctions = {
|
|||
if(typeof(val) === "function")
|
||||
val = val();
|
||||
|
||||
if(val instanceof jQuery)
|
||||
if(val instanceof $)
|
||||
return val as JQuery;
|
||||
|
||||
if(Array.isArray(val)) {
|
||||
|
|
Loading…
Reference in New Issue