Compare commits

2 Commits

Author SHA1 Message Date
2094e6010c „octoprint_extradistance/__init__.py“ ändern 2020-10-26 17:27:31 +00:00
d8e88e6091 add extra class to removal selector
more specific selector for stock distance button removal
2017-12-18 22:48:52 +10:00
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ class ExtraDistancePlugin(octoprint.plugin.SettingsPlugin,
# ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
__plugin_name__ = "Extra Distance Buttons"
__plugin_pythoncompat__ = ">=2.7,<4"
def __plugin_load__():
global __plugin_implementation__

View File

@ -12,7 +12,7 @@ $(function() {
self.control.distances2 = ko.observableArray([5, 50, 100, 150]);
if ($("#touch body").length == 0) {
$(".distance").remove();
$(".jog-panel .distance").remove();
$("#control-jog-z").after("\
<div class=\"distance\" id=\"distance-selector\">\
<div class=\"btn-group\" data-toggle=\"buttons-radio\" id=\"jog_distance1\">\