Skip to content

Instantly share code, notes, and snippets.

@elsplatto
Created October 12, 2010 02:29
Show Gist options
  • Save elsplatto/621575 to your computer and use it in GitHub Desktop.
Save elsplatto/621575 to your computer and use it in GitHub Desktop.
$("a.overlayTrigger").overlay(
{
mask: "#444",<
effect: "apple",
onBeforeLoad: function()
{
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
if (!wrap.hasClass("lgeLoading"))
{
wrap.addClass("lgeLoading");
// load the page specified in the trigger and add ajaxLoad parameter
wrap.load(this.getTrigger().attr("href") + "?ajaxLoad=true .loadPeg")
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment