Fixed typo and changed link to clearAllLogs

Both logs (fancy and plain) cleared out at same time
This commit is contained in:
AndyQ committed 2019-05-27 15:01:14 +01:00
1 parent 352b190a72
commit 4bfabf82ae
2 files changed
+4 -8

No files matched your search

@@ -338,13 +338,9 @@ $(function() {
copyToClipboard(lines.join("\n"));
};
self.clearLogWidow = function() {
if (self.fancyFunctionality()) {
self.log([]);
} else {
self.plainLogLines([]);
}
self.clearAllLogs = function() {
self.log([]);
self.plainLogLines([]);
};
// command matching regex
// (Example output for inputs G0, G1, G28.1, M117 test)
+1 -1
View File
@@ -14,7 +14,7 @@
</small>
<small class="pull-right">
<a href="javascript:void(0)" data-bind="click: copyAll"><i class="fa fa-copy" title="{{ _('Copy all') }}"></i> {{ _('Copy all') }}</a><br>
<a href="javascript:void(0)" data-bind="click: clearLogWidow"><i class="fa fa-copy" title="{{ _('Clear log widow') }}"></i> {{ _('Clear log widow') }}</a>
<a href="javascript:void(0)" data-bind="click: clearAllLogs"><i class="fa fa-copy" title="{{ _('Clear log window') }}"></i> {{ _('Clear log window') }}</a>
</small>
<small class="pull-left text-warning" data-bind="visible: !fancyFunctionality()" style="display: none">
{{ _('For performance reasons only a limited amount of terminal functionality is enabled right now.') }}