From 1b70801a6b309cd92bd450cb142f029a5c3e8ebd Mon Sep 17 00:00:00 2001 From: Alex Ustyantsev Date: Sun, 3 Feb 2013 12:44:41 +0300 Subject: [PATCH] Fixed some residual stuff after rebase --- octoprint/static/js/ui.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index 21ca571..15c80a5 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -669,31 +669,8 @@ function GcodeFilesViewModel() { }) } -<<<<<<< HEAD - self.viewFile = function() { - var filename = this.name; - $.ajax({ - url: "gcodefile/"+filename, - type: "GET", - success: function(response, rstatus) { - self.showGCodeViewer(response, rstatus); - } - }) - } - - self.showGCodeViewer = function(response, rstatus){ - console.log(rstatus); - var par = {}; - par.target = {}; - par.target.result = response; - GCODE.gCodeReader.loadFile(par); - } - - 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",