Skip to content

Commit

Permalink
Version 1.17+1
Browse files Browse the repository at this point in the history
Bug fix: When a filament directory had no valid "date created" timestamp, the web interface disconnected with an AJAX error
Bug fix: Deleting filaments didn't work
Bug fix: Heater temperature inputs were not updated if the new "tools" and "states" fields were present
  • Loading branch information
chrishamm committed Jul 18, 2017
1 parent bc3fde8 commit 10fd888
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions core/js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,8 @@ function addFilament(name, dateCreated) {
$("#page_filaments h1").addClass("hidden");
$("#table_filaments").removeClass("hidden");

var row = '<tr data-filament="' + name + '" data-date-created="' + dateCreated.getTime() + '">';
var dateCreatedValue = (dateCreated == undefined) ? 0 : dateCreated.getTime();
var row = '<tr data-filament="' + name + '" data-date-created="' + dateCreatedValue + '">';
row += '<td><input type="checkbox"></td>';
row += '<td><a href="#" class="a-filament"><span class="glyphicon glyphicon-cd"></span> ' + name + '</a></td>';
row += '<td>' + ((dateCreated == undefined) ? T("unknown") : dateCreated.toLocaleString()) + '</td>';
Expand Down Expand Up @@ -1747,7 +1748,6 @@ function deleteFilament(filament, elementToRemove) {
action: "delete",
elementToRemove: elementToRemove,
filament: filament,
path: directory,
type: "filament"
});
doFileTask();
Expand Down Expand Up @@ -1788,7 +1788,7 @@ function doFileTask() {
dataType: "json",
success: function(response) {
if (response.err == 0) {
elementToRemove.remove();
task.elementToRemove.remove();
updateFilesConditionally();
}
}
Expand Down
3 changes: 3 additions & 0 deletions core/js/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,9 @@ function setTemperatureInput(heater, value, active, setToolHeaters) {
}

function setToolTemperatureInput(tool, heater, value, active) {
// Update Heaters panel as well
setTemperatureInput(heater, value, active, false);

var tempInput = undefined;
if (heater == "bed") {
tempInput = $("#table_tools tr[data-heater='bed'] input");
Expand Down
4 changes: 2 additions & 2 deletions core/reprap.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Duet Web Control v1.17
<!-- Duet Web Control v1.17+1
written by Christian Hammacher
Expand Down Expand Up @@ -1747,7 +1747,7 @@ <h1 class="text-center text-muted">Connect to your Duet to display Filaments</h1
</tr>
<tr>
<th>Web Interface Version:</th>
<td>1.17</td>
<td>1.17+1</td>
</tr>
</table>
<span id="span_copyright">Web Interface by Christian Hammacher<br/>Licensed under the terms of the <a href="https://www.gnu.org/licenses/gpl-3.0" target="blank">GPL v3</a></span>
Expand Down

0 comments on commit 10fd888

Please sign in to comment.