Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added callback() for ajax request #88

Merged
merged 2 commits into from

2 participants

@chrisabrams

I added a new option, ajaxcallback(), which allows for the user to successfully apply code relating to prettyphoto after the ajax call finishes.

chrisabrams added some commits
@chrisabrams chrisabrams Added ajax callback
Signed-off-by: Chris Abrams <mail@chrisabrams.com>
04a494b
@chrisabrams chrisabrams Moved Show content
Signed-off-by: Chris Abrams <mail@chrisabrams.com>
39f7783
@scaron scaron merged commit 635456e into scaron:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2012
  1. @chrisabrams

    Added ajax callback

    chrisabrams authored
    Signed-off-by: Chris Abrams <mail@chrisabrams.com>
Commits on Mar 3, 2012
  1. @chrisabrams

    Moved Show content

    chrisabrams authored
    Signed-off-by: Chris Abrams <mail@chrisabrams.com>
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  js/jquery.prettyPhoto.js
View
2  js/jquery.prettyPhoto.js
@@ -10,6 +10,7 @@
$.fn.prettyPhoto = function(pp_settings) {
pp_settings = jQuery.extend({
animation_speed: 'fast', /* fast/slow/normal */
+ ajaxcallback: function() {},
slideshow: 5000, /* false OR interval time in ms */
autoplay_slideshow: false, /* true/false */
opacity: 0.80, /* Value between 0 and 1 */
@@ -538,6 +539,7 @@
});
_insert_gallery();
+ pp_settings.ajaxcallback();
};
/**
Something went wrong with that request. Please try again.