From cbb83154170b7064ab85abc1483b779965f648dc Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 14 Oct 2021 08:58:05 -0700 Subject: [PATCH] Prevent e-ajax from firing multiple times. --- e107_web/js/core/all.jquery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index f1610d82b..b66313dbc 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -123,12 +123,12 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; e107.behaviors.eAJAX = { attach: function (context, settings) { - $(context).find('.e-ajax').one('e-ajax').each(function () + $(context).find('.e-ajax').each(function () { var $this = $(this); var event = $this.attr('data-event') || e107.callbacks.getDefaultEventHandler($this); - $this.on(event, function () + $this.one(event, function () { var $element = $(this); @@ -219,7 +219,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; $(this).show(); // default 'toggle'. - $(this).click(function () + $(this).on('click', function () { var $this = $(this);