mirror of
https://github.com/e107inc/e107.git
synced 2025-07-15 03:56:20 +02:00
More jQuery.once() to jQuery.one() replacements.
This commit is contained in:
@ -17,7 +17,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
e107.behaviors.forumActions = {
|
e107.behaviors.forumActions = {
|
||||||
attach: function (context, settings)
|
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)
|
$(this).on('click', function (e)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
e107.behaviors.galleryCycle = {
|
e107.behaviors.galleryCycle = {
|
||||||
attach: function (context, settings)
|
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({
|
$(this).cycle({
|
||||||
fx: settings.gallery.fx,
|
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 ()
|
$(this).click(function ()
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
var pPhoto = settings.gallery.prettyphoto || {};
|
var pPhoto = settings.gallery.prettyphoto || {};
|
||||||
var pPhook = pPhoto.hook || 'data-gal';
|
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,
|
hook: pPhook,
|
||||||
animation_speed: pPhoto.animation_speed, // fast/slow/normal
|
animation_speed: pPhoto.animation_speed, // fast/slow/normal
|
||||||
|
Reference in New Issue
Block a user