Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions abc-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,4 +43,4 @@ jQuery(document).ready(function($){

}

});
});