{"id":15928077,"date":"2022-08-18T12:45:51","date_gmt":"2022-08-18T12:45:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/js-initialization-function-for-buttons\/"},"modified":"2022-08-18T12:45:51","modified_gmt":"2022-08-18T12:45:51","slug":"js-initialization-function-for-buttons","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/js-initialization-function-for-buttons\/","title":{"rendered":"JS initialization function for buttons"},"content":{"rendered":"<p>I&#8217;m using your plugin&#8217;s modal feature for a contact form.  <\/p>\n<p>I have a button on the page that opens when you click a modal (plugin: Mega Addons for WPBakery Page Builder) contact form (plugin: contact form 7).<\/p>\n<p>However, when selecting the attributes for the filter (plugin:Avalon23) (Ajax is activated). The pop-up doesn&#8217;t open. I have to refresh the page for the pop-up to open.<\/p>\n<p>I&#8217;ve contacted Avalon23 support, and they&#8217;ve informed me that the problem is the incompatibility of this functionality (modal) with ajax mode. <\/p>\n<p>To have the modal open, I would need the JS initialization function for buttons. <\/p>\n<p>Do you have a page where I can find this code?<\/p>\n","protected":false},"template":"","class_list":["post-15928077","topic","type-topic","status-publish","hentry","topic-tag-ajax","topic-tag-button","topic-tag-javascript"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15928077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15928077\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15928077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}