diff --git a/abc-output.php b/abc-output.php index 0d2af8b..87b1777 100644 --- a/abc-output.php +++ b/abc-output.php @@ -45,8 +45,17 @@ public function html() return $this->build_html( $show_browsers, $old_ie, $user_browser ); } } + return $this->build_success(); } } + + /** + * Return the response for a valid browser + * @return string + */ + private function build_success(){ + return "success"; + } /** * Build the HTML for the popup diff --git a/js/script.js b/js/script.js index cc8f74d..3a5cd12 100644 --- a/js/script.js +++ b/js/script.js @@ -13,7 +13,10 @@ jQuery(document).ready(function($){ $.post(url.abc_url, ajax_action, function(response) { if(response) { - + // If the browser is valid + if(response=="success"){ + $('.advanced-browser-check').hide(); + } // We will need to add a css class to the body // if we detect IE 6 for combability css to load // properly @@ -40,4 +43,4 @@ jQuery(document).ready(function($){ } -}); \ No newline at end of file +});