AJAX.registerTeardown("server_status_variables.js",function(){$("#filterAlert").unbind("change");$("#filterText").unbind("keyup");$("#filterCategory").unbind("change");$("#dontFormat").unbind("change")});AJAX.registerOnload("server_status_variables.js",function(){PMA_tooltip($("table.sortable>thead>tr:first").find("th"),"th",PMA_messages.strSortHint);initTableSorter("statustabs_allvars");var d=null;var c=$("#filterAlert").prop("checked");var b=$("#filterCategory").find(":selected").val();var a=false;var f="";$("#filterAlert").change(function(){c=this.checked;e()});$("#filterCategory").change(function(){b=$(this).val();e()});$("#dontFormat").change(function(){$("#serverstatusvariables").hide();$("#serverstatusvariables td.value span.original").toggle(this.checked);$("#serverstatusvariables td.value span.formatted").toggle(!this.checked);$("#serverstatusvariables").show()}).trigger("change");$("#filterText").keyup(function(h){var g=$(this).val().replace(/_/g," ");if(g.length==0){d=null}else{d=new RegExp("(^| )"+g,"i")}f=g;e()}).trigger("keyup");function e(){var g=0;var h=f;if(b.length>0){h=b}if(h.length>1){$("#linkSuggestions span").each(function(){if($(this).attr("class").indexOf("status_"+h)!=-1){g++;$(this).css("display","")}else{$(this).css("display","none")}})}if(g>0){$("#linkSuggestions").css("display","")}else{$("#linkSuggestions").css("display","none")}a=false;$("#serverstatusvariables th.name").each(function(){if((d==null||d.exec($(this).text()))&&(!c||$(this).next().find("span.attention").length>0)&&(b.length==0||$(this).parent().hasClass("s_"+b))){a=!a;$(this).parent().css("display","");if(a){$(this).parent().addClass("odd");$(this).parent().removeClass("even")}else{$(this).parent().addClass("even");$(this).parent().removeClass("odd")}}else{$(this).parent().css("display","none")}})}});