[gnome-web-www: 15/68] Make JS scripts work with WordPress JQuery



commit 77c692f8430a864781eb7561861f8e6d96099a55
Author: Tom Tryfonidis <tomtryf gmail com>
Date:   Mon Oct 24 13:55:05 2016 +0300

    Make JS scripts work with WordPress JQuery
    
    We no longer use theme's JQuery version, as it may cause problems with various plugins.

 theme/js/responsive.js |    6 ++----
 theme/js/template.js   |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/theme/js/responsive.js b/theme/js/responsive.js
index 9746376..7fc0848 100644
--- a/theme/js/responsive.js
+++ b/theme/js/responsive.js
@@ -1,5 +1,4 @@
-
-$(function() {
+jQuery(document).ready(function($) {
     //  Sub menu navigation of Foundation Menu
      $(".normal-menu .foundation-menu-item").click(function(){
 
@@ -9,9 +8,8 @@ $(function() {
          }
          else{
                $(".foundation-menu-item > a").html("Foundation +");
-             $('.foundation-menu-item a').blur();
          }
-         $(".foundation-menu-item .sub-menu").toggle('slow');
+         $(".foundation-menu-item .sub-menu").toggle('fast');
      })
 
 
diff --git a/theme/js/template.js b/theme/js/template.js
index 6d70b87..b9611ce 100644
--- a/theme/js/template.js
+++ b/theme/js/template.js
@@ -1,4 +1,4 @@
-$(document).ready(function() {
+jQuery(document).ready(function($) {
 
     // Get browser  
     $.each($.browser, function(i) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]