From 09054ddb4b23ae6e773963062fe9160df7739659 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 19 Jan 2018 19:11:55 -0800 Subject: [PATCH] Correct clear logs message --- data/interfaces/default/logs.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/logs.html b/data/interfaces/default/logs.html index e09b08e9..cea0e9b5 100644 --- a/data/interfaces/default/logs.html +++ b/data/interfaces/default/logs.html @@ -385,8 +385,9 @@ $("#clear-logs").click(function () { var logfile = $(".tab-pane.active").data('logfile') + var title = $("#log_tabs li.active a").text() - $("#confirm-message").text("Are you sure you want to clear the Tautulli logs?"); + $("#confirm-message").text("Are you sure you want to clear the " + title + "?"); $('#confirm-modal').modal(); $('#confirm-modal').one('click', '#confirm-button', function () { $.ajax({ @@ -421,7 +422,7 @@ }); $("#clear-notify-logs").click(function () { - $("#confirm-message").text("Are you sure you want to clear the Tautulli notification logs?"); + $("#confirm-message").text("Are you sure you want to clear the Tautulli Notification Logs?"); $('#confirm-modal').modal(); $('#confirm-modal').one('click', '#confirm-button', function () { $.ajax({ @@ -442,7 +443,7 @@ }); $("#clear-login-logs").click(function () { - $("#confirm-message").text("Are you sure you want to clear the Tautulli login logs?"); + $("#confirm-message").text("Are you sure you want to clear the Tautulli Login Logs?"); $('#confirm-modal').modal(); $('#confirm-modal').one('click', '#confirm-button', function () { $.ajax({