[BUGFIX] Replace $ with jQuery in PowermailCondition.js
authorAlex Kellner <alexander.kellner@in2code.de>
Sat, 31 Oct 2015 14:29:31 +0000 (15:29 +0100)
committerAlex Kellner <alexander.kellner@in2code.de>
Sat, 31 Oct 2015 14:29:31 +0000 (15:29 +0100)
replace $ with jQuery within ready function

Related: #71150

Resources/Public/JavaScript/PowermailCondition.js

index 989da29..b2bdb3c 100644 (file)
@@ -5,7 +5,7 @@
  * @param {jQuery} $formElement powermail form
  * @constructor
  */
-function PowermailCondition($formElement) {
+function PowermailCondition($, $formElement) {
        'use strict';
 
        /**
@@ -280,8 +280,8 @@ function PowermailCondition($formElement) {
 }
 
 jQuery(document).ready(function() {
-       $('form.powermail_form').each(function() {
-               var PowermailCondition = new window.PowermailCondition($(this));
+       jQuery('form.powermail_form').each(function() {
+               var PowermailCondition = new window.PowermailCondition(jQuery, $(this));
                PowermailCondition.ajaxListener();
        });
 });