From b722b5f2f33e375b1dddad00abaa5b2bce874fa6 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Thu, 12 Jan 2012 12:23:52 +0100 Subject: [PATCH] Fix up debug info and comments --- plemp.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plemp.js b/plemp.js index f173528..1ba52e7 100644 --- a/plemp.js +++ b/plemp.js @@ -11,7 +11,6 @@ var express = require("express"), form = require("connect-form"), fs = require('fs'), path = require('path'), - util = require("util"), crypto = require("crypto") // Set up the Node Express application. @@ -46,7 +45,7 @@ app.get('/', function(req, res) { res.redirect('/index.html'); }); -// The retrieval controller: accessed through AJAX requests by the main +// The retrieval controller: accessed through AJAX requests by the main // page for getting/setting the state (positions) of the draggables. app.get('/draggables', function(req, res) { // Retrieve the current status of the draggables and return in JSON format. @@ -93,19 +92,19 @@ app.post('/draggables', function(req, res) { res.redirect('home'); }); -// The draggables controller: provides direct access to the HTML +// The draggable controller: provides direct access to the HTML // generating code for draggable objects. app.get('/draggables/:id', function(req, res) { var file = "../upload/" + req.params.id; + console.log("Get draggable: " + file); // Stuff taken from the Camping implementation. drag = draggables[req.params.id]; var default_style = "left:" + drag.left + "px;top:" + drag.top + "px;"; - console.log("Get draggable: " + file); res.send(''); }); -// The position save controller: access through AJAX request by the main +// The position save controller: access through AJAX request by the main // page for committing position changes of the draggables to the database, // i.e. the global state. app.post('/draggables/:id', function(req, res) {