mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Named the buttons imperatively
This commit is contained in:
@@ -3,11 +3,11 @@ $(document).ready(function() {
|
||||
"rowCallback": function( row, data, index ){
|
||||
if (data[4] == "Pi-holed") {
|
||||
$(row).css('color','red');
|
||||
$('td:eq(5)', row).html( '<button style="color:green;"><i class="fa fa-pencil-square-o"></i> To whitelist</button>' );
|
||||
$('td:eq(5)', row).html( '<button style="color:green;"><i class="fa fa-pencil-square-o"></i> Whitelist</button>' );
|
||||
}
|
||||
else{
|
||||
$(row).css('color','green');
|
||||
$('td:eq(5)', row).html( '<button style="color:red;"><i class="fa fa-ban"></i> To blacklist</button>' );
|
||||
$('td:eq(5)', row).html( '<button style="color:red;"><i class="fa fa-ban"></i> Blacklist</button>' );
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user