• Resolved zetoun17

    (@zetoun17)


    Hello

    1) when using the shortcode with ‘isajax’:

    [flexiblemap isajax="1" address="Paris - France" width="500px" height="250px"]

    i have this javascript error :
    “Uncaught ReferenceError: FlexibleMap is not defined”

    Could you include this fix an your next update ?
    in includes/class.FlxMapPlugin.php line 483
    replace

    var $varID = (function() {
    $script return f;
    })();

    with

    var $varID = function() {
    $script return f;
    };

    it will replace the autoevalute function with a simple funtion, the FlexibleMap object is not available because the js file is loaded later in the footer

    2) other point :feature request
    in flexible-map.js ishidden() line 266
    replace

    return style.display === "none";<br />

    width

    if(style.display === "none" || style.visibility === "hidden" ) return true; else return false;

    https://ww.wp.xz.cn/plugins/wp-flexible-map/

Viewing 1 replies (of 1 total)
  • Plugin Author webaware

    (@webaware)

    G’day zetoun17,

    Thanks, I’ve added both to my issue tracker and will address in the next version.

    cheers,
    Ross

Viewing 1 replies (of 1 total)

The topic ‘javascript error with isajax=1 and feature request’ is closed to new replies.