From 3c662833df3733738694269ebada42268007fb3d Mon Sep 17 00:00:00 2001 From: Gary Benade Date: Fri, 6 Oct 2017 00:46:18 +0200 Subject: [PATCH] Update jquery.modal.js if the popup is triggered using jquery .modal() and not via an link, line 88 throws an error because the anchor variable is not set --- jquery.modal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.modal.js b/jquery.modal.js index 2c3bcce..236cf10 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -73,6 +73,7 @@ } } else { this.$elm = el; + this.anchor = el; this.$body.append(this.$elm); this.open(); }