Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a callback when the caption is loaded #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions jquery.poptrox.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
popupNavPreviousSelector: '.nav-previous', // (Advanced) Popup Nav Previous selector
popupNavNextSelector: '.nav-next', // (Advanced) Popup Nav Next selector
onPopupClose: null, // Called when popup closes
onPopupOpen: null // Called when popup opens
onPopupOpen: null, // Called when popup opens
onCaptionLoaded: null // Called when caption is loaded

}, options);

Expand Down Expand Up @@ -275,6 +276,9 @@

$caption.html(s);

if (settings.onCaptionLoaded)
(settings.onCaptionLoaded)($popup);

});

$closer
Expand Down Expand Up @@ -870,4 +874,4 @@

};

})(jQuery);
})(jQuery);
Loading