From 5abf44d1f09c97a4f15874132d11008c0e60508e Mon Sep 17 00:00:00 2001 From: Mahdi Farhani Date: Thu, 20 Aug 2020 15:55:59 +0430 Subject: [PATCH] To work with jquery > 3 This small change will allow the popupwindow to work with Jquery >3 --- jquery.popupwindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.popupwindow.js b/jquery.popupwindow.js index 9a00de7..e5aaa2f 100644 --- a/jquery.popupwindow.js +++ b/jquery.popupwindow.js @@ -21,7 +21,7 @@ width: 500 }; - $.popupWindow = function(url, opts) { + $.fn.popupWindow = function(url, opts) { var options = $.extend({}, defaults, opts); // center the window