From 201b5723d9a537262d490a568ce32cbacb872dc9 Mon Sep 17 00:00:00 2001 From: Javierma87 Date: Thu, 18 Feb 2016 12:15:54 +0000 Subject: [PATCH] Solved problem with character '}' at static/js/viewmodels/file.js --- src/octoprint/static/js/app/viewmodels/files.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 5cf713c9f..addabf2ad 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -423,7 +423,7 @@ $(function() { } } output += gettext("Estimated Print Time") + ": " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]) + "
"; - if(data["gcodeAnalysis"]["warning"]) + if(self.loginState.isUser()&&data["gcodeAnalysis"]["warning"]) { var warning = "

" + gettext("Object exceeds printing area") + "

"; warning += pnotifyAdditionalInfo("
Object or objects in file '"+data["name"]+"' exceeds the printing area
"); @@ -512,7 +512,6 @@ $(function() { self.uploadSdButton = $("#gcode_upload_sd"); if (!self.uploadSdButton.length) { self.uploadSdButton = undefined; - } if (_.endsWith(filename.toLowerCase(), ".stl")) { self.slicing.show(location, filename); } @@ -522,7 +521,7 @@ $(function() { $("#gcode_upload_progress").removeClass("progress-striped").removeClass("active"); $("#gcode_upload_progress .bar").text(""); } - //} + } self.uploadProgress = $("#gcode_upload_progress"); self.uploadProgressBar = $(".bar", self.uploadProgress);