add extra class to removal selector

more specific selector for stock distance button removal
This commit is contained in:
ntoff 2017-12-18 22:48:52 +10:00
parent 8e4e830f0b
commit d8e88e6091

View File

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