Plugin Directory


Ignore:
Timestamp:
02/15/2024 10:38:15 PM (2 years ago)
Author:
codepeople
Message:

New version 1.1.3
Modifications in the changelogs.

Location:
codepeople-post-map
Files:
79 added
6 edited

Legend:

Unmodified
Added
Removed
  • codepeople-post-map/trunk/codepeople-post-map.php

    r3007080 r3036584  
    33Plugin Name: Google Maps CP
    44Text Domain: codepeople-post-map
    5 Version: 1.1.2
     5Version: 1.1.3
    66Author: CodePeople
    77Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
  • codepeople-post-map/trunk/include/functions.php

    r2935383 r3036584  
    10681068        <script>
    10691069            jQuery(function(){
    1070                 jQuery('.cpm_thumbnail_admin').mouseover(function(){jQuery(this).width(300).height(300);}).mouseout(function(){jQuery(this).width(100).height(100);});
     1070                jQuery('.cpm_thumbnail_admin').on('mouseover',function(){jQuery(this).width(300).height(300);}).on('mouseout',function(){jQuery(this).width(100).height(100);});
    10711071            });
    10721072        </script>
  • codepeople-post-map/trunk/js/cpm.admin.js

    r2704259 r3036584  
    5555        function transform( v )
    5656        {
    57             if( $.isNumeric( v ) ) return v;
     57            if( !isNaN( parseFloat( v ) ) && isFinite( v ) ) return v;
    5858            v = v.replace(/[\W_]/g, " " ).replace(/\s+/g, ' ' ).replace( /^\s+/, '' ).replace( /\s+$/, '' ).toLowerCase();
    5959            var ref = ( /[ne]/.test( v ) ) ? 1 : -1,
     
    9393                                if(status && status == "OK"){
    9494                                    // Update fields
    95                                     var address   = ( $.trim( a ).length && typeof  r[ 'location' ] != 'undefined' ) ? a : result[0]['formatted_address'],
     95                                    var address   = ( String( a ).trim().length && typeof  r[ 'location' ] != 'undefined' ) ? a : result[0]['formatted_address'],
    9696                                        latitude  = result[0]['geometry']['location'].lat(),
    9797                                        longitude = result[0]['geometry']['location'].lng();
     
    202202    $(function(){
    203203        // Actions for icons
    204         $(".cpm_icon").click(function(){
     204        $(".cpm_icon").on('click',function(){
    205205            var  i = $(this);
    206206            $('.cpm_icon.cpm_selected').removeClass('cpm_selected');
    207207            i.addClass('cpm_selected');
    208208            $('#default_icon').val($('img', i).attr('src'));
    209         }).mouseover(function(){
     209        }).on('mouseover',function(){
    210210            $(this).css({"border":"solid #BBBBBB 1px"})
    211         }).mouseout(function(){
     211        }).on('mouseout',function(){
    212212            $(this).css({"border":"solid #F9F9F9 1px"})
    213213        });
     
    219219
    220220        // Action for insert shortcode
    221         $('#cpm_map_shortcode').click(function(){
     221        $('#cpm_map_shortcode').on('click',function(){
    222222            if(window.cpm_send_to_editor_default)
    223223                window.send_to_editor = window.cpm_send_to_editor_default;
     
    248248            var f = $(this);
    249249            enable_disable_fields(f, !f[0].checked);
    250             f.click(function(){
     250            f.on('click',function(){
    251251                enable_disable_fields(f,!f[0].checked);
    252252            });
     
    254254
    255255        // Show/hide map settings on single pages.
    256         $('#cpm_map_single').change(function(){
     256        $('#cpm_map_single').on('change',function(){
    257257            $('.cpm-map-settings')[this.checked ? 'show' : 'hide']();
    258258        });
  • codepeople-post-map/trunk/js/cpm.js

    r3007080 r3036584  
    343343                    // Insert a icon to display map
    344344                    var map_icon = $('<div class="cpm-mapicon"></div>');
    345                     map_icon.click(function(){
     345                    map_icon.on('click',function(){
    346346                        if(map_container.is( ':visible' ))
    347347                        {
  • codepeople-post-map/trunk/js/gutenberg.js

    r2701329 r3036584  
    8585    {
    8686        var save_draft = jQuery('.editor-post-save-draft');
    87         if(save_draft.length) save_draft.click();
     87        if(save_draft.length) save_draft.trigger('click');
    8888        else
    8989        {
    9090            var update_btn = jQuery('.editor-post-publish-button');
    91             if(update_btn.length) update_btn.click();
     91            if(update_btn.length) update_btn.trigger('click');
    9292            else
    9393            {
  • codepeople-post-map/trunk/readme.txt

    r3007080 r3036584  
    638638== Changelog ==
    639639
     640= 1.1.3 =
     641
     642* Removes deprecated JS code.
     643
    640644= 1.1.2 =
    641645
Note: See TracChangeset for help on using the changeset viewer.