WS_OK_7.4.33
/**
* This file holds javascript functions needed in frontend for the functionallity of the facebook widgets
*
* @author Christian "Kriesi" Budschedl
* @copyright Copyright ( c ) Christian Budschedl
* @link http://kriesi.at
* @link http://aviathemes.com
* @since Version 1.0
* @package AviaFramework
*/
"use strict";!function(t){var e=null,i=function(){e=this,this.document=t(document),this.confirm_page_buttons=this.document.find(".avia_fb_likebox .av_facebook_widget_confirm_link"),this.bind_events()};i.prototype={bind_events:function(){this.confirm_page_buttons.on("click",this.load_fb_page_widget)},create_script:function(e,i){if(t('script[id="'+e+'"]').length>0)FB.XFBML.parse();else{var n=document.createElement("script");n.id=e,n.type="text/javascript",n.src=i,document.body.appendChild(n)}},load_fb_page_widget:function(i){i.preventDefault();var n=t(this);n.closest(".avia_fb_likebox").find(".av_facebook_widget_main_wrap").replaceWith(n.data("fbhtml")),e.create_script(n.data("fbscript_id"),n.data("fbscript"))}},t((function(){new i}))}(jQuery);