Remove api/download reset

This commit is contained in:
DariusIII
2019-08-12 15:52:16 +02:00
parent e8bec2c5de
commit 503e5e13d3
5 changed files with 11 additions and 22 deletions
+1
View File
@@ -1,4 +1,5 @@
2019-08-12 DariusIII
* Chg: Remove api and download hits reset functionality
* Chg: Update javascript and tpls
* Chg: Slightly improve movie matching
* Fix: Fix game covers
File diff suppressed because one or more lines are too long
-7
View File
@@ -1287,13 +1287,6 @@ function mymovie_add(imdbID, btn) {
return false;
}
//reset users api counts
function resetapireq(uid, type) {
$.post(base_url + 'ajax_resetusergrabs-admin?id=' + uid + '&action=' + type, function(
resp
) {});
}
function getNzbGetQueue() {
$.ajax({
url: 'queuedata?type=nzbget&id=' + $.now(),
@@ -2,9 +2,6 @@
<html lang="{{App::getLocale()}}">
<head>
<script>
var UID = "{if Auth::check()}{Auth::id()}{else}{/if}";
</script>
<meta charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{csrf_token()}}">
+9 -11
View File
@@ -101,21 +101,19 @@
<tr>
<th>API Hits last 24 hours</th>
<td>
<span id="uatd">{$apirequests}</span> {if isset($isadmin) && $apirequests > 0}
<a
onclick="resetapireq({$user.id}, 'api'); document.getElementById('uatd').innerHTML='0'; return false;"
href="#" class="badge badge-danger">
Reset</a>{/if}</td>
<span>
{$apirequests}
</span>
</td>
</tr>
<tr>
<th>Downloads last 24 hours</th>
<td><span id="ugrtd">{$grabstoday}</span> /</span>
<td>
<span>
{$grabstoday}
</span> /
{$user->role->downloadrequests}
{if isset($isadmin) && $grabstoday > 0}
<a onclick="resetapireq({$user.id}, 'grabs'); document.getElementById('ugrtd').innerHTML='0'; return false;"
href="#" class="badge badge-danger">
Reset</a>
{/if}</td>
</td>
</tr>
<tr>
<th>Downloads Total</th>