Results 1 to 2 of 2

Thread: Version 1.2.5 uses deprecated jQuery function

  1. #1
    Thread Starter
    usa4sale's Avatar
    Join Date
    May 2012
    Location
    United States
    Posts
    103
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Version 1.2.5 uses deprecated jQuery function

    Upgrading to v 1.2.5 broke our site. We had to change "live to "on" to fix it.

    PHP Code:
    function wpw_mappress_head_fun()
    {
        echo 
    '<meta http-equiv="X-UA-Compatible" content="IE=7,IE=8,IE=9,IE=10"/>';
        
    wp_enqueue_style('mappress',WPW_CLASSI_GMAP_PLUGIN_URL.'/mappress.css');
        
    ?>
        <script>
        jQuery( document ).ready(function() {
            jQuery(".cssslider ul li .nxlnk").on("click",function(event) {  //fixed here
                event.preventDefault();
                jQuery(this).closest("li").hide();
                if(jQuery(this).closest("li").next('li').length === 1)
                    jQuery(this).closest("li").next('li').show();
                else
                    jQuery(".cssslider ul li").eq(0).show();

            });
            jQuery(".cssslider ul li .prelnk").on("click",function(event) {  // fixed here
                event.preventDefault();
                jQuery(this).closest("li").hide();
                if(jQuery(this).closest("li").prev('li').length === 1)
                    jQuery(this).closest("li").prev('li').show();
                else
                    jQuery(".cssslider ul li").last().show();

            });
        });
        </script> 

  2. #2
    Marketplace Seller vipul's Avatar
    Join Date
    Jun 2012
    Location
    Surat,Gujarat,India
    Posts
    1,647
    Thanks
    0
    Thanked 172 Times in 170 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] like_escape is deprecated since version 4.0
    By dylant1apptheme7 in forum Help Using Vantage (Legacy)
    Replies: 5
    Last Post: January 16th, 2015, 06:06 PM
  2. Samcy CP 3.3.1 PHP Deprecated Function Calls.
    By seoagent in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 16th, 2013, 08:41 AM
  3. Dimitris Old jQuery version if 'Google CDN jQuery' is activated?
    By per4mance in forum Report JobRoller Bugs
    Replies: 2
    Last Post: March 10th, 2013, 04:27 PM
  4. Deprecated: Function split()
    By numediaweb in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: April 11th, 2012, 06:51 PM