Permalink
Browse files

add ability to pass options to fancybox, bump version

  • Loading branch information...
1 parent bae98e5 commit d5ac919ce5246bf8762359f186e483ce2b9c558a @phlipper committed Mar 24, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 jquery.fancy-photoset.js
View
@@ -2,7 +2,7 @@
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
*
- * Version: 0.3.0
+ * Version: 0.4.0
* Requires jQuery 1.4.2+, Fancybox 1.3.1+
* Docs: http://phlippers.net/code/fancy-photoset
*/
@@ -29,7 +29,7 @@
$('<img/>').attr({'src': $.fn.fancyPhotoset.urlFor(photo, {size: opts.small}), 'title': photo.title, 'alt': photo.title}).after(
(opts.captions ? $('<span/>').addClass('caption').text(photo.title) : '')
)
- ).fancybox()
+ ).fancybox(opts.fancybox)
)
);
});
@@ -63,6 +63,7 @@
small : 'square',
large : 'medium',
captions : true,
- firstOnly : false
+ firstOnly : false,
+ fancybox : {}
};
})(jQuery);

0 comments on commit d5ac919

Please sign in to comment.