Skip to content

Commit

Permalink
Merge pull request #456 from BillyBlaze/maintenance
Browse files Browse the repository at this point in the history
Maintenance
  • Loading branch information
BillyBlaze authored Nov 30, 2020
2 parents 10bec24 + b3cf6fb commit 0e91142
Show file tree
Hide file tree
Showing 33 changed files with 6,497 additions and 4,895 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@ jobs:
for your contributions.
stale-issue-label: 'inactive'
stale-pr-label: 'inactive'
exempt-issue-labels:
- help wanted
- up for grabs
- fixed
- confirmed
- pending
exempt-pr-labels:
- help wanted
- up for grabs
- fixed
- confirmed
- pending
exempt-issue-labels: 'help wanted,up for grabs,fixed,confirmed,pending'
exempt-pr-labels: 'help wanted,up for grabs,fixed,confirmed,pending'
5 changes: 4 additions & 1 deletion octoprint_touchui/static/css/touchui.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions octoprint_touchui/static/fonts/fontawesome/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 8 additions & 24 deletions octoprint_touchui/static/js/touchui.bundled.js
Original file line number Diff line number Diff line change
Expand Up @@ -2103,38 +2103,22 @@ TouchUI.prototype.DOM.move.controls = {

init: function() {

// backward compatibility with <1.3.0
if($('#control-jog-feedrate').length === 0) {
var jogPanels = $('#control > .jog-panel');

$(jogPanels[0]).find(".jog-panel:nth-child(1)").attr("id", "control-jog-xy");
$(jogPanels[0]).find(".jog-panel:nth-child(2)").attr("id", "control-jog-z");
$(jogPanels[1]).attr("id", "control-jog-extrusion");
$(jogPanels[2]).attr("id", "control-jog-general");

$('<div class="jog-panel" id="control-jog-feedrate"></div>').insertAfter($(jogPanels[2]));
$(jogPanels[0]).find("> button:last-child").prependTo("#control-jog-feedrate");
$(jogPanels[0]).find("> input:last-child").prependTo("#control-jog-feedrate");
$(jogPanels[0]).find("> .slider:last-child").prependTo("#control-jog-feedrate");

}

if($('#control-jog-feedrate .input-append').length === 0) {
// <1.4.1
$("#control-jog-feedrate").insertBefore("#control-jog-extrusion");
$("#control-jog-extrusion button:last-child").prependTo("#control-jog-feedrate");
$("#control-jog-extrusion input:last-child").attr('data-bind', $("#control-jog-extrusion input:last-child").attr('data-bind').replace('slider: {', 'slider: {tools: tools(), ')).prependTo("#control-jog-feedrate");
$("#control-jog-extrusion .slider:last-child").prependTo("#control-jog-feedrate");
} else {
// >=1.4.1
$("#control-jog-feedrate").insertBefore("#control-jog-extrusion");
$("#control-jog-feedrate .input-append button").insertAfter("#control-jog-feedrate .input-append");

$("#control-jog-flowrate").removeClass("jog-panel");
$("#control-jog-flowrate .input-append button").insertAfter("#control-jog-flowrate .input-append");
}

$("#control div.distance").prependTo("#control-jog-feedrate");
// Move Z-panel
$("#control-jog-general").insertAfter("#control-jog-z");

// Create panel
var $jog = $('<div/>').attr('id', 'control-jog-rate').insertBefore('#control-jog-extrusion');
$("#control div.distance").appendTo($jog);
$("#control-jog-feedrate").appendTo($jog);
$("#control-jog-flowrate").appendTo($jog);
}

}
Expand Down
Loading

0 comments on commit 0e91142

Please sign in to comment.