Skip to content

Commit

Permalink
reveal ajax content should use settings from modal that is opening, o…
Browse files Browse the repository at this point in the history
…therwise open_modal appears to be undefined
  • Loading branch information
Mark Hayes committed Feb 18, 2014
1 parent 4bbbaf4 commit c0600e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/foundation/foundation.reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@

if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
if (open_modal.length > 0) {
var open_modal_settings = open_modal.data(self.attr_name(true) + '-init');
this.hide(open_modal, open_modal_settings.css.close);
this.hide(open_modal, settings.css.close);
}

this.show(modal, settings.css.open);
Expand All @@ -190,8 +189,7 @@
self.S(modal).foundation('section', 'reflow');

if (open_modal.length > 0) {
var open_modal_settings = open_modal.data(self.attr_name(true) + '-init');
self.hide(open_modal, open_modal_settings.css.close);
self.hide(open_modal, settings.css.close);
}
self.show(modal, settings.css.open);
}
Expand Down

0 comments on commit c0600e6

Please sign in to comment.