seb86/Auto-Load-Next-Post

View on GitHub
assets/js/admin/pro-preview.min.js

Summary

Maintainability
A
0 mins
Test Coverage
/*! Auto Load Next Post v1.6.0-beta.1 Thursday 5th September 2019 22:50:39 PM GMT+0200 */
!function(i,p){i(".nav-tab-wrapper a").on("click",function(n){var t,e=i(this).attr("href"),o=i(this).data("tab");"#"==e&&(n.preventDefault(),t=i.dialog({icon:"dashicons dashicons-info",title:p.i18n_coming_soon,content:"<p>"+p.i18n_coming_soon_content+"</p>",rtl:p.is_rtl,type:"blue",draggable:!1,boxWidth:"500px",useBootstrap:!1}),"comments"==o&&setTimeout(function(){t.setContentAppend("<p>"+p.i18n_comments_content+"</p>")},100),"load-and-scroll"==o&&setTimeout(function(){t.setContentAppend("<p>"+p.i18n_load_scroll_content+"</p>")},100),"restrictions"==o&&setTimeout(function(){t.setContentAppend("<p>"+p.i18n_restrictions_content+"</p>")},100),"query"==o&&setTimeout(function(){t.setContentAppend("<p>"+p.i18n_query_content+"</p>")},100),"license"==o&&setTimeout(function(){t.setContentAppend("<p>"+p.i18n_license_content+"</p>")},100))})}(jQuery,alnp_pro_preview_params);