Merge pull request #1208 from atomgomba/feature-cli-clear-button
Add button to reset CLI output history10.5.x-maintenance
commit
400a13b41f
|
@ -2093,6 +2093,9 @@
|
||||||
"cliSaveToFileBtn": {
|
"cliSaveToFileBtn": {
|
||||||
"message": "Save to File"
|
"message": "Save to File"
|
||||||
},
|
},
|
||||||
|
"cliClearOutputHistoryBtn": {
|
||||||
|
"message": "Clear output history"
|
||||||
|
},
|
||||||
|
|
||||||
"loggingNote": {
|
"loggingNote": {
|
||||||
"message": "Data will be logged in this tab <span class=\"message-negative\">only</span>, leaving the tab will <span class=\"message-negative\">cancel</span> logging and application will return to its normal <strong>\"configurator\"</strong> state.<br /> You are free to select the global update period, data will be written into the log file every <strong>1</strong> second for performance reasons."
|
"message": "Data will be logged in this tab <span class=\"message-negative\">only</span>, leaving the tab will <span class=\"message-negative\">cancel</span> logging and application will return to its normal <strong>\"configurator\"</strong> state.<br /> You are free to select the global update period, data will be written into the log file every <strong>1</strong> second for performance reasons."
|
||||||
|
|
|
@ -102,6 +102,11 @@ TABS.cli.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.tab-cli .clear').click(function() {
|
||||||
|
self.outputHistory = "";
|
||||||
|
$('.tab-cli .window .wrapper').empty();
|
||||||
|
});
|
||||||
|
|
||||||
// Tab key detection must be on keydown,
|
// Tab key detection must be on keydown,
|
||||||
// `keypress`/`keyup` happens too late, as `textarea` will have already lost focus.
|
// `keypress`/`keyup` happens too late, as `textarea` will have already lost focus.
|
||||||
textarea.keydown(function (event) {
|
textarea.keydown(function (event) {
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<div class="content_toolbar">
|
<div class="content_toolbar">
|
||||||
<div class="btn save_btn pull-right">
|
<div class="btn save_btn pull-right">
|
||||||
<a class="save" href="#" i18n="cliSaveToFileBtn"></a>
|
<a class="save" href="#" i18n="cliSaveToFileBtn"></a>
|
||||||
|
<a class="clear" href="#" i18n="cliClearOutputHistoryBtn"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue