$(document).ready(function() { $( "body" ).on( "click",'.nav-search-btn', function(){ $('.fade-scale-modal .modal-header').hide(); $('.fade-scale-modal .modal-body').load('search_btn_dialog.php', function() { $('.fade-scale-modal .modal-body .qModal').focus(); }); $('.modal').addClass('modal-full-screen'); $('.fade-scale-modal').modal('show'); return false; }); $( "body" ).on( "click",'.nav-search-engine-btn', function(){ $('.fade-scale-modal .modal-header').hide(); $('.fade-scale-modal .modal-body').load('search_engine.php', function() { }); $('.modal').addClass('modal-full-screen'); $('.fade-scale-modal').modal('show'); return false; }); $( "body" ).on( "click",'.iframeBtn', function() { var iframScr = $(this).attr('data-iframe-scr'); $('.fade-scale-modal .modal-header').hide(); $('.fade-scale-modal .modal-body').css("padding","0"); $('.fade-scale-modal .modal-body').html('
'+""); $('#ifrrameCS').on('load', function() {$('#loadingmodal').fadeOut();}); $(".fade-scale-modal .modal-body iframe").trigger("load"); $('.fade-scale-modal').modal('show'); return false; }); });