page_settings.min.js
1.43 KB
jQuery(document).ready(function(a){var b=a('input[name="anchor"]'),c=a(".nav-tab-wrapper>a"),d=window.location.hash;""!==d&&(d="#"+d.replace("#","")),""!==d&&b.val(d),a(".table").addClass("ui-tabs-hide"),a(b.val()).removeClass("ui-tabs-hide"),"#backwpup-tab-information"==b.val()&&(a("#submit").hide(),a("#default_settings").hide()),c.removeClass("nav-tab-active"),c.each(function(){a(this).attr("href")==b.val()&&a(this).addClass("nav-tab-active")}),c.on("click",function(){var d=a(this).attr("href");return c.removeClass("nav-tab-active"),a(this).addClass("nav-tab-active"),a(".table").addClass("ui-tabs-hide"),a(d).removeClass("ui-tabs-hide"),a("#message").hide(),b.val(d),"#backwpup-tab-information"==d?(a("#submit").hide(),a("#default_settings").hide()):(a("#submit").show(),a("#default_settings").show()),window.location.hash=d,window.scrollTo(0,0),!1}),a("#authentication_method").change(function(){var b=a("#authentication_method").val();""===b?(a(".authentication_basic").hide(),a(".authentication_query_arg").hide(),a(".authentication_user").hide()):"basic"==b?(a(".authentication_basic").show(),a(".authentication_query_arg").hide(),a(".authentication_user").hide()):"query_arg"==b?(a(".authentication_basic").hide(),a(".authentication_query_arg").show(),a(".authentication_user").hide()):"user"==b&&(a(".authentication_basic").hide(),a(".authentication_query_arg").hide(),a(".authentication_user").show())}),setTimeout(function(){window.scrollTo(0,0)},1)});