From 3de0d1b1e56e159307fd8bdf7a824e11d2adfca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 4 Feb 2013 21:41:02 +0100 Subject: [PATCH] Fixed file deletion for gcode files --- octoprint/static/js/ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index 1af7887..36e44cf 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -669,8 +669,7 @@ function GcodeFilesViewModel() { }) } - self.removeFile = function() { - var filename = this.name; + self.removeFile = function(filename) { $.ajax({ url: AJAX_BASEURL + "gcodefiles/delete", type: "POST",