Created
October 12, 2010 02:29
-
-
Save elsplatto/621575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("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