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