Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- S(document)
- .on('click.fndtn.reveal', this.close_targets(), function (e) {
- e.preventDefault();
- if (!self.locked) {
- var settings = S('[' + self.attr_name() + '].open').data(self.attr_name(true) + '-init') || self.settings,
- bg_clicked = S(e.target)[0] === S('.' + settings.bg_class)[0];
- if (bg_clicked) {
- if (settings.close_on_background_click) {
- e.stopPropagation();
- } else {
- return;
- }
- }
- self.locked = true;
- self.close.call(self, bg_clicked ? S('[' + self.attr_name() + '].open:not(.toback)') : S(this).closest('[' + self.attr_name() + ']'));
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement