From 324601dfedd2b9910875d3c05d8144541a959a04 Mon Sep 17 00:00:00 2001 From: Richard Mitchell Date: Fri, 1 Mar 2013 21:52:15 +0000 Subject: [PATCH] Did clever stuff at first for restart but replacing the appearance of start is all that is needed I believe --- octoprint/static/css/ui.css | 6 ++++++ octoprint/static/js/ui.js | 2 +- octoprint/templates/index.html | 8 +++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/octoprint/static/css/ui.css b/octoprint/static/css/ui.css index 92f6857..b7ca7a9 100644 --- a/octoprint/static/css/ui.css +++ b/octoprint/static/css/ui.css @@ -46,6 +46,12 @@ body { padding: 0px 15px; } +.print-control .btn { + padding-left: 4px; + padding-right: 4px; +} + + /** Tables */ table { diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index d96485a..a799e51 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -1240,7 +1240,7 @@ $(function() { //~~ Print job control - $("#job_print").click(function() { + $("#job_print, #job_restart").click(function() { $.ajax({ url: AJAX_BASEURL + "control/print", type: "POST", diff --git a/octoprint/templates/index.html b/octoprint/templates/index.html index 814ac7b..5af55f7 100644 --- a/octoprint/templates/index.html +++ b/octoprint/templates/index.html @@ -74,9 +74,11 @@
- - - +