1
0
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:
Cameron
2021-10-03 11:03:23 -07:00
parent 9aa6d16f2c
commit 34ad8bc1d8
3 changed files with 4 additions and 4 deletions

View File

@@ -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