Home Forums Plugin Support WP User Frontend Pro Google maps field probably is conflicting with other js in dashboard

This topic is: resolved

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  Dimitri 5 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3033

    s.pezzani
    Participant
    Post count: 36

    Hi Tareq,

    take a look to this:

    http://demo.wedevs.com/wpuf/wp-admin/post.php?post=1608&action=edit

    As you can see, If you try to click to “Add Media” nothing happens. If you remove Google maps field, everything come back to work normally.

    I'm trying using Chrome but I've tested also on IE.
    It happens also to my WP.

    This is an issue of the last plugin version.

    Thank you

    #3034

    Tareq Hasan
    Keymaster
    Post count: 2831

    Seems like I forgot to call the jQuery autocomplete script in the admin panel. Add wp_enqueue_script( 'jquery-ui-autocomplete' ); line at /class/admin-form.php at line 71 or next to it.

    #3035

    s.pezzani
    Participant
    Post count: 36

    Added, but it still does not work…

    #3036

    Tareq Hasan
    Keymaster
    Post count: 2831

    Oops, wrong place. Trying adding just after this:
    [php]
    if ( !in_array( $pagenow, array( ‘post.php', ‘post-new.php') ) ) {
    return;
    }
    [/php]

    #3037

    s.pezzani
    Participant
    Post count: 36

    oooh Yes. thank you again.

    #15465

    Dimitri
    Member
    Post count: 20

    Hi!

    I've the same problem:

    
    <p>        <script type="text/javascript"></p>
    <p>            (function($) {
                    $(function() {
                        var def_zoomval = 12;
                        var def_longval = -74.0059731;
                        var def_latval = 40.7143528;
                        var curpoint = new google.maps.LatLng(def_latval, def_longval),
                            geocoder   = new window.google.maps.Geocoder(),
                            $map_area = $('#wpuf-map-mappa'),
                            $input_area = $( '#wpuf-map-lat-mappa' ),
                            $input_add = $( '#wpuf-map-add-mappa' ),
                            $find_btn = $( '#wpuf-map-btn-mappa' );</p>
    <p>                    autoCompleteAddress();</p>
    <p>                    $find_btn.on('click', function(e) {
                            e.preventDefault();</p>
    <p>                        geocodeAddress( $input_add.val() );
                        });</p>
    <p>                    var gmap = new google.maps.Map( $map_area[0], {

    I've seen your fix bat the string you suggest to add it's already into the
    /class/admin-form.php

    How could solve this?

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Google maps field probably is conflicting with other js in dashboard’ is closed to new replies.