Add an apply button to the new Audit log page (#532)

* Add an apply button to the new Audit log page

* The button is not actually called "Apply"
This commit is contained in:
DL6ER
2017-07-14 22:50:09 +02:00
committed by GitHub
parent 40ae7fb0ca
commit a13b7bd692
3 changed files with 20 additions and 5 deletions

View File

@@ -89,9 +89,10 @@ $(document).ready(function() {
$("#domain-frequency tbody").on( "click", "button", function () {
var url = ($(this).parents("tr"))[0].innerText.split(" ")[0];
if($(this).context.innerText === "Blacklist")
if($(this).context.innerText === " Blacklist")
{
add(url,"black");
$("#gravityBtn").prop("disabled", false);
}
else
{
@@ -101,9 +102,10 @@ $(document).ready(function() {
$("#ad-frequency tbody").on( "click", "button", function () {
var url = ($(this).parents("tr"))[0].innerText.split(" ")[0].split(" ")[0];
if($(this).context.innerText === "Whitelist")
if($(this).context.innerText === " Whitelist")
{
add(url,"white");
$("#gravityBtn").prop("disabled", false);
}
else
{
@@ -111,3 +113,8 @@ $(document).ready(function() {
}
});
});
$("#gravityBtn").on("click", function() {
window.location.replace("gravity.php?go");
});