• Resolved mkbarraco

    (@mkbarraco)


    Hi there,

    i tried to update your plugin from 2.5.11 to 2.5.15 and my website shows an issue about a jQuery function. Can you help me?

    (function($) { “use strict”; $(document).ready(function($) { mg_grid_filters[“61718450ae5dc”] = []; mg_grid_filters[‘61718450ae5dc’][‘mg_pag_’] = { condition : ‘AND’, val : [1] }; $(window).trigger(“mg_pre_grid_init”, [“61718450ae5dc”, “258”]); if(typeof(mg_init_grid) == “function” ) { mg_init_grid(“61718450ae5dc”, 1); } $(window).trigger(“mg_post_grid_init”, [“61718450ae5dc”, “258”]); }); })(jQuery);

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mkbarraco

    (@mkbarraco)

    sorry, from 2.0.11 to 2.0.15

    debug active, no errors found

    Plugin Contributor Md Khalil Uddin

    (@khalilu)

    Hi @mkbarraco,

    Thanks for reaching us. Hope you are fine.

    For security purposes, we didn’t allow the script tag. Please use the following code in your function.php file to allow the script tag.

    // allow script to tab editor

    add_filter('sp_wp_tabs_allowed_tags', 'sp_wp_tabs_allowed_tags_modified');
    function sp_wp_tabs_allowed_tags_modified( $allowed_tags ) {
     $allowed_tags['script'] = array();
    return $allowed_tags; }

    Please let us know if it works or not.

    Thanks.

    Thread Starter mkbarraco

    (@mkbarraco)

    @khalilu thanks for your help… but I still no see them on backend, only on frontend. Can you help me?

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @mkbarraco

    The code we provided in the previous reply should work. Can you please try again to use the code in your current theme’s functions.php file? Have a look at the screenshot for a better understanding. I am sharing the code again.

    add_filter('sp_wp_tabs_allowed_tags', 'sp_wp_tabs_allowed_tags_modified');
    function sp_wp_tabs_allowed_tags_modified( $allowed_tags ) {
         $allowed_tags['script'] = array(
              'type' => array(),
          );
          return $allowed_tags;
     }

    If you follow the above direction properly, I hope it will work.

    Have a good day!

    Thank you.

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @mkbarraco,

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘function issue’ is closed to new replies.