mirror of
https://github.com/e107inc/e107.git
synced 2025-10-26 19:21:54 +01:00
More jQuery.once() to jQuery.one() replacements.
This commit is contained in:
@@ -14,7 +14,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
var pPhoto = settings.gallery.prettyphoto || {};
|
||||
var pPhook = pPhoto.hook || 'data-gal';
|
||||
|
||||
$(context).find("a[" + pPhook + "^='prettyPhoto']").once('gallery-prettyPhoto').prettyPhoto(
|
||||
$(context).find("a[" + pPhook + "^='prettyPhoto']").one('gallery-prettyPhoto').prettyPhoto(
|
||||
{
|
||||
hook: pPhook,
|
||||
animation_speed: pPhoto.animation_speed, // fast/slow/normal
|
||||
|
||||
Reference in New Issue
Block a user