Skip to content

Commit

Permalink
Fixes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
1337-server committed Mar 18, 2022
1 parent 72fc2df commit 4b0793d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
7 changes: 2 additions & 5 deletions arm/ui/static/js/jobRefresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,10 @@ function refreshJobs() {
timeout: 2000,
error: function() { --serverCount; },
complete: function() {
if(serverCount) {
console.log("Waiting on "+serverCount+" job lists.");
} else {
// TODO need to check if job list is empty and remove any jobs still on page
console.log(activeJobs);
$.each(activeJobs, function (index, job) {
if (typeof(job) !== "undefined" && !job.active) {
console.log("job isnt active");
removeJobItem(job);
activeJobs.splice(index, 1);
}
Expand All @@ -326,7 +323,7 @@ function refreshJobs() {
elem.remove();
$(elem).appendTo("#joblist");
});
}

},
success: function (data) {
$.each(data.results, function (index, job) {
Expand Down
5 changes: 3 additions & 2 deletions arm/ui/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "",
"short_name": "ARM",
"name": "Automatic Ripping Machine",
"icons": [
{
"src": "/static/img/arm80.png",
Expand All @@ -20,7 +21,7 @@
"src":"/static/img/android-chrome-512x512.png",
"sizes":"512x512",
"type":"image/png"
}]
}],
"theme_color": "#446e9b",
"background_color": "#3a3f51",
"display": "standalone"
Expand Down
3 changes: 2 additions & 1 deletion arm/ui/templates/activerips.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<div class="col-sm-8" >
<div class="table-responsive">
<table id="riptable" style="margin: 0 auto" class="table table-striped">
<caption>Active Rips</caption>
<thead class="tablesorterhead">
<tr style="margin: 0 auto">
<th onclick="sortTable(0)">Title</th>
<th onclick="sortTable(1)" width="200px">Start Time</th>
<th onclick="sortTable(1)">Start Time</th>
<th onclick="sortTable(2)">Status</th>
</tr>
</thead>
Expand Down
2 changes: 1 addition & 1 deletion arm/ui/templates/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="row h-100 mx-auto align-items-center">
<div class="col-sm-12 mx-auto">
<p class="text-center">
<h5 class="text-center"><strong>Database Entries</strong></h5>
<h5 class="text-center"><strong>Database Entries</strong></h5>
</p>
</div>
</div>
Expand Down
9 changes: 5 additions & 4 deletions arm/ui/templates/list_titles.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
{% if "Type" in res and res["Type"].lower() != "game" %}
<div class="col-md-3 text-center">
<div class="card text-center">
<div class="card-header"><a
href="gettitle?imdbID={{ res["imdbID"] }}&job_id={{ job_id }}"><img
src="{{ res["Poster"] }}" width="120px" class="img-thumbnail"
alt="Poster image"></a></div>
<div class="card-header">
<a href="gettitle?imdbID={{ res["imdbID"] }}&job_id={{ job_id }}">
<img src="{{ res["Poster"] }}" width="120px" class="img-thumbnail" alt="Poster image">
</a>
</div>
<div class="card-body"><strong>{{ res["Title"] }}</strong> - {{ res["Type"].capitalize() }}
({{ res["Year"] }})
</div>
Expand Down

0 comments on commit 4b0793d

Please sign in to comment.