Set a default width and height for items when uploaded

This commit is contained in:
Paul van Tilburg 2012-02-14 23:47:25 +01:00
parent c7bf0458e2
commit 8b15d389d9
1 changed files with 3 additions and 1 deletions

4
app.js
View File

@ -257,7 +257,9 @@ app.post('/draggables', function(req, res, next) {
mime: file_mime,
title: file_title,
top: 200,
left: 350 };
left: 350,
width: 400,
height: 300 };
addEvent("add", { id: drag_id, info: draggables[drag_id] });
// If this was a drag & drop upload, do not redirect to /.
if (fields.type == 'dnd') {