From f6274f1002428d81ddb692bf90246b22899c089c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 11 Feb 2012 12:30:52 +0100 Subject: [PATCH] No longer reload window after adding, just wait for the add event --- public/javascripts/plemp-ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/javascripts/plemp-ui.js b/public/javascripts/plemp-ui.js index 2a12691..8995b77 100644 --- a/public/javascripts/plemp-ui.js +++ b/public/javascripts/plemp-ui.js @@ -44,8 +44,7 @@ $(document).ready(function() { data: { type: 'dnd' }, maxfiles: 1, maxfilesize: 50, - error: function(err, file) { console.log(err, file); }, - afterAll: function() { window.location.reload(true) } + error: function(err, file) { console.log(err, file); } }); // Populate the canvas with the draggables.