"; if (window.CKEDITOR) { CKEDITOR.instances["content"].insertHtml(shortcode + "\r\n"); } else { window.send_to_editor(shortcode + "\r\n"); } jQuery("[data-popup=ux_open_popup_media_button]").fadeOut(350); } function fbl_validate_fields() { var likebox_type = jQuery("#ux_ddl_layout_likebox").val(); var likebox = jQuery("#ux_ddl_layout_title").val(); if (likebox_type === "") { var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val(); var $toast = toastr[shortCutFunction]("Please Choose a Like Box Type"); return; } else { like_box_type(); } if (likebox === "") { var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val(); var $toast = toastr[shortCutFunction]("Please Choose a Like Box"); return; } insert_like_box(); } jQuery(document).ready(function () { show_pop_up_facebook_likebox(); });
"; if (window.CKEDITOR) { CKEDITOR.instances["content"].insertHtml(shortcode + "\r\n"); } else { window.send_to_editor(shortcode + "\r\n"); } jQuery("[data-popup=ux_open_popup_media_button]").fadeOut(350); } function fbl_validate_fields() { var likebox_type = jQuery("#ux_ddl_layout_likebox").val(); var likebox = jQuery("#ux_ddl_layout_title").val(); if (likebox_type === "") { var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val(); var $toast = toastr[shortCutFunction]("Please Choose a Like Box Type"); return; } else { like_box_type(); } if (likebox === "") { var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val(); var $toast = toastr[shortCutFunction]("Please Choose a Like Box"); return; } insert_like_box(); } jQuery(document).ready(function () { show_pop_up_facebook_likebox(); });