From 2508377f0256a72e1fb8c6d1fe21b724192120f2 Mon Sep 17 00:00:00 2001 From: Henric Johansson Date: Wed, 19 Mar 2014 12:26:33 +0100 Subject: [PATCH] Fix jQuery noconflict I had a problem with my Joomla site that throw a conflict error. --- responsive-tables.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/responsive-tables.js b/responsive-tables.js index 1a862f1..2cfd1dd 100644 --- a/responsive-tables.js +++ b/responsive-tables.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +jQuery(document).ready(function($) { var switched = false; var updateTables = function() { if (($(window).width() < 767) && !switched ){ @@ -16,9 +16,9 @@ $(document).ready(function() { } }; - $(window).load(updateTables); - $(window).on("redraw",function(){switched=false;updateTables();}); // An event to listen for - $(window).on("resize", updateTables); + jQuery(window).load(updateTables); + jQuery(window).on("redraw",function(){switched=false;updateTables();}); // An event to listen for + jQuery(window).on("resize", updateTables); function splitTable(original)