mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Remove parseInt() from values guaranteed to be int from the API.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -258,11 +258,11 @@ $(function () {
|
||||
isCNAME = true;
|
||||
break;
|
||||
default:
|
||||
fieldtext = "Unknown (" + parseInt(data[4]) + ")";
|
||||
fieldtext = "Unknown (" + data[4] + ")";
|
||||
buttontext = "";
|
||||
}
|
||||
|
||||
fieldtext += '<input type="hidden" name="id" value="' + parseInt(data[4]) + '">';
|
||||
fieldtext += '<input type="hidden" name="id" value="' + data[4] + '">';
|
||||
|
||||
if (colorClass !== false) {
|
||||
$(row).addClass(colorClass);
|
||||
@@ -307,7 +307,7 @@ $(function () {
|
||||
|
||||
// Check for existence of sixth column and display only if not Pi-holed
|
||||
var replytext,
|
||||
replyid = parseInt(data[5]);
|
||||
replyid = data[5];
|
||||
|
||||
if (replyid >= 0 && replyid < replyTypes.length) {
|
||||
replytext = replyTypes[replyid];
|
||||
|
||||
Reference in New Issue
Block a user