function k_bulk_upload_result( res ){ var msg = $.trim( res ); if( msg.length ){ alert( "ERROR!\n\n" + msg ); } window.location.reload( true ); } $(function(){ COUCH.bindGallerySelect(); //COUCH.bindPopupIframe( $( ".plupload-gallery" ) ); $('.plupload-gallery').magnificPopup({ type: 'iframe', iframe: { markup: ''+ '
'+ '
'+ ''+ '
' }, closeOnBgClick: false, preloader: false, }); COUCH.bindPopupGallery(); });