From 4163d9436f73441cf6b6eb0fe9619b02225a3f1d Mon Sep 17 00:00:00 2001 From: Alex Ustyantsev Date: Sat, 2 Feb 2013 19:53:46 +0300 Subject: [PATCH] Some cleanup from initial integration: removed separate icon for viewing gcode --- octoprint/static/css/ui.css | 6 +++--- octoprint/static/js/ui.js | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/octoprint/static/css/ui.css b/octoprint/static/css/ui.css index 687025a..6632ef6 100644 --- a/octoprint/static/css/ui.css +++ b/octoprint/static/css/ui.css @@ -44,17 +44,17 @@ table th, table td { table th.gcode_files_name, table td.gcode_files_name { text-overflow: ellipsis; text-align: left; - width: 50%; + width: 55%; } table th.gcode_files_size, table td.gcode_files_size { text-align: right; - width: 20%; + width: 25%; } table th.gcode_files_action, table td.gcode_files_action { text-align: center; - width: 30%; + width: 20%; } #temperature-graph { diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index c042090..21ca571 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -669,6 +669,7 @@ function GcodeFilesViewModel() { }) } +<<<<<<< HEAD self.viewFile = function() { var filename = this.name; $.ajax({ @@ -689,6 +690,10 @@ function GcodeFilesViewModel() { } self.removeFile = function(filename) { +======= + self.removeFile = function() { + var filename = this.name; +>>>>>>> Some cleanup from initial integration: removed separate icon for viewing gcode $.ajax({ url: AJAX_BASEURL + "gcodefiles/delete", type: "POST", @@ -939,12 +944,8 @@ $(function() { var terminalViewModel = new TerminalViewModel(); var gcodeFilesViewModel = new GcodeFilesViewModel(); var webcamViewModel = new WebcamViewModel(); -<<<<<<< HEAD - var dataUpdater = new DataUpdater(connectionViewModel, printerStateViewModel, temperatureViewModel, controlsViewModel, speedViewModel, terminalViewModel, webcamViewModel); -======= var gcodeViewModel = new GcodeViewModel(); - var dataUpdater = new DataUpdater(connectionViewModel, printerStateViewModel, temperatureViewModel, speedViewModel, terminalViewModel, webcamViewModel, gcodeViewModel); ->>>>>>> Initial implementation of autoupdate gcodeview on status from server + var dataUpdater = new DataUpdater(connectionViewModel, printerStateViewModel, temperatureViewModel, controlsViewModel, speedViewModel, terminalViewModel, webcamViewModel, gcodeViewModel); //~~ Print job control