From 4b8260b933c65bcd35124008f4dad780782e0d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 11 Mar 2013 21:46:05 +0100 Subject: [PATCH] Fixed some indentation --- octoprint/static/js/ui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index ef9ad35..d628d66 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -1521,7 +1521,7 @@ $(function() { //~~ Terminal - $("#terminal-send").click(function () { + $("#terminal-send").click(function () { var command = $("#terminal-command").val(); if (command) { $.ajax({ @@ -1531,15 +1531,15 @@ $(function() { contentType: "application/json; charset=UTF-8", data: JSON.stringify({"command": command}) }) - $("#terminal-command").val('') + $("#terminal-command").val('') } - + }) - $("#terminal-command").keyup(function(event){ - if(event.keyCode == 13){ + $("#terminal-command").keyup(function (event) { + if (event.keyCode == 13) { $("#terminal-send").click() - } + } }) //~~ Gcode upload