mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
More jQuery.once() to jQuery.one() replacements.
This commit is contained in:
parent
9aa6d16f2c
commit
34ad8bc1d8
e107_plugins
@ -17,7 +17,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.behaviors.forumActions = {
|
||||
attach: function (context, settings)
|
||||
{
|
||||
$('a[data-forum-action], input[data-forum-action]', context).once('data-forum-action').each(function ()
|
||||
$('a[data-forum-action], input[data-forum-action]', context).one('data-forum-action').each(function ()
|
||||
{
|
||||
$(this).on('click', function (e)
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.behaviors.galleryCycle = {
|
||||
attach: function (context, settings)
|
||||
{
|
||||
$(context).find("#gallery-slideshow-content").once('gallery-slideshow-content').each(function ()
|
||||
$(context).find("#gallery-slideshow-content").one('gallery-slideshow-content').each(function ()
|
||||
{
|
||||
$(this).cycle({
|
||||
fx: settings.gallery.fx,
|
||||
@ -33,7 +33,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
});
|
||||
});
|
||||
|
||||
$(context).find(".gallery-slide-jumper").once('gallery-slide-jumper').each(function ()
|
||||
$(context).find(".gallery-slide-jumper").one('gallery-slide-jumper').each(function ()
|
||||
{
|
||||
$(this).click(function ()
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user