Skip to content

Commit

Permalink
Revert back to previous commit
Browse files Browse the repository at this point in the history
this.anchor is undefined, when manually opening modal.
@see: 78434a6#commitcomment-23149344

Revert back to 706cb74,
because this is the last working commit.

I pushed a workaround-keypress-enter branch for proposals, which will be deleted once merged.
  • Loading branch information
Marco Kellershoff committed Jul 18, 2017
1 parent 706cb74 commit e753d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
modals.push(this);
if (el.is('a')) {
target = el.attr('href');
this.anchor = el;
//Select element by id from href
if (/^#/.test(target)) {
this.$elm = $(target);
Expand Down Expand Up @@ -83,6 +84,7 @@
open: function() {
var m = this;
this.block();
this.anchor.blur();
if(this.options.doFade) {
setTimeout(function() {
m.show();
Expand Down

0 comments on commit e753d64

Please sign in to comment.