Skip to content

Commit

Permalink
added function "Clear"
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonshineSG committed Jan 22, 2016
1 parent 70ac8e5 commit 59db14a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions octoprint_autoscroll/static/js/autoscroll.js
Expand Up @@ -24,6 +24,15 @@ $(function() {

self.container = $("#terminal-output");

//change function of "Scrool to end" to "Clear"
var ee = $(".terminal .pull-right a").first();
ee.unbind();
ee.text("Clear");
ee.on("click", function() {
self.terminal.log([]);
self.terminal.scrollToEnd();
return false;
});
$("#terminal-output").on("scroll", self.scrollhandle);
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-Autoscroll"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.0.1"
plugin_version = "0.0.2"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 59db14a

Please sign in to comment.