Commit graph

90 commits

Author SHA1 Message Date
Paul van Tilburg 01243ea78d Actually retrieve the title from the form 2012-02-11 01:35:48 +01:00
Paul van Tilburg 7c685ddd29 Escape the HTML in text/code (closes: #4fe9c7) 2012-02-11 01:35:25 +01:00
Paul van Tilburg 4ec1c46e5d Proper variable declaration 2012-02-11 00:47:41 +01:00
Paul van Tilburg 777d2bd210 Set undefined/unknown upload mime type to application/octet-stream 2012-02-11 00:47:20 +01:00
Paul van Tilburg 7f6e91c44b Merge branch 'feature/dragndrop' to add drag&drop support (closes: #743b13) 2012-02-11 00:39:21 +01:00
Paul van Tilburg a86f87a309 Fix debug log message 2012-02-11 00:37:45 +01:00
Paul van Tilburg 8c3dce25aa Merge branch 'feature/distributed' 2012-02-09 10:37:24 +01:00
Paul van Tilburg 6a120ae148 Add a poll_server method loop and handle server events by manipulating the canvas
Closes #5bc941.
2012-02-09 10:35:51 +01:00
Paul van Tilburg adae14c70b Add a poll_server method loop and handle server events by manipulating the canvas 2012-02-09 10:31:03 +01:00
Paul van Tilburg 870342ffdf Split of the code for the actual adding/deleting of draggables to/from the canvas 2012-02-09 10:28:09 +01:00
Paul van Tilburg 1c706fd6cc Ensure that draggable IDs do not contain dots
* Fix up the name field of the draggable info to contain the full filename
* The ID is now just the md5sum
2012-02-09 10:25:55 +01:00
Paul van Tilburg a3d79b6ef7 Attach a timestamp to the list of draggables for the client 2012-02-09 10:25:26 +01:00
Paul van Tilburg 7a78be42c4 Add the events controller 2012-02-09 10:24:40 +01:00
Paul van Tilburg 227464270e Throw events for reposition, title change, add, and delete 2012-02-09 10:23:29 +01:00
Paul van Tilburg d4dd68cc38 Add functions of the event framework 2012-02-09 10:22:17 +01:00
Paul van Tilburg feb5f58000 Style fixes for elements contained in draggables 2012-01-18 23:35:37 +01:00
Paul van Tilburg 09cfe2772b Ensure the height of the body/canvas is the full 100% (for uploading) 2012-01-18 22:18:35 +01:00
Paul van Tilburg a5368cc78e When an upload is done via d&d, don't redirect to / 2012-01-18 22:18:35 +01:00
Paul van Tilburg 29f6b52dff Use the filedrop jQuery plugin to allow for drag & drop uploading 2012-01-18 22:18:35 +01:00
Paul van Tilburg 5a4ab521b3 Add the filedrop jQuery plugin 2012-01-18 22:18:35 +01:00
Paul van Tilburg ecd79b19a3 Set the title for file uploads to the filename without the extension 2012-01-18 22:17:50 +01:00
Paul van Tilburg 20db6beaea Tweak the font size of text and code 2012-01-18 22:17:26 +01:00
Paul van Tilburg 1ddb35acdc Bump version to 0.2 2012-01-17 14:29:44 +01:00
Paul van Tilburg 0b6d9c6ba0 Raise a draggable on click 2012-01-17 14:27:52 +01:00
Paul van Tilburg b961536aab Modify draggable params: dragging starts from > 10px and not on audio/vido 2012-01-17 14:27:37 +01:00
Paul van Tilburg bc35b23891 Remove debug statements; added missing semicolons 2012-01-16 23:45:15 +01:00
Paul van Tilburg 6300da2881 Fixed id attribute retrieval due to refactoring in 5b3edc5 2012-01-16 20:27:09 +01:00
Paul van Tilburg 9e0198cd03 Prevent nodemon from restarting when client-side stuff is changed 2012-01-16 19:03:53 +01:00
Paul van Tilburg 7dd854161d Add production and development mode 2012-01-16 11:34:19 +01:00
Paul van Tilburg 40e987c7a5 Rename plemp.js to apps.js by Express convention 2012-01-16 11:18:12 +01:00
Paul van Tilburg 4bbc98a94f Include jquery-ui.css, ignore it, and use the non minimized version of jquery-ui.js 2012-01-16 11:12:59 +01:00
Paul van Tilburg 9de0d664de Simplify the plempable header style a bit and make it into a proper h2 2012-01-16 10:57:37 +01:00
Paul van Tilburg 5b3edc5e53 Refactored the draggable setup into the plempable jQuery plugin 2012-01-16 10:22:22 +01:00
Paul van Tilburg 33f5f1511e Rename dragreg.js to plemp-ui.js 2012-01-16 10:02:50 +01:00
Paul van Tilburg d201cd9fa7 Show comments part of the draggable when hovering over it (no comments yet though) 2012-01-16 00:17:51 +01:00
Paul van Tilburg 03f6469223 Removed unused callback function 2012-01-15 23:52:08 +01:00
Paul van Tilburg e09dc28a06 Keycode 16 is actually Shift, don't trigger on that! 2012-01-15 23:51:51 +01:00
Paul van Tilburg 98c37dba4e Add fade effect when a draggable is removed 2012-01-15 23:51:01 +01:00
Paul van Tilburg 59974e0e0c General style tweaks 2012-01-15 23:48:33 +01:00
Paul van Tilburg 1e0b8a21d8 Include and use the Jeditable jQuery plugin to update the title 2012-01-15 23:46:09 +01:00
Paul van Tilburg b612710c4e Updated the update controller for setting the title of draggables 2012-01-15 23:44:56 +01:00
Paul van Tilburg 315b0b66b9 Add the title field to the model 2012-01-15 23:43:57 +01:00
Paul van Tilburg 5a1f6fe4ac Add the Jeditable jQuery plugin 2012-01-15 23:42:39 +01:00
Paul van Tilburg c91159466d Clean the database of non-existing draggables on start 2012-01-15 17:16:40 +01:00
Paul van Tilburg 569052a06e Delete the draggable when the "X" is clicked upon
Also apply syntax highlighting, draggabilty, and signals to the last
added draggable in the iteration, not to all.
2012-01-15 17:15:10 +01:00
Paul van Tilburg f987f79581 Add a controller for the removal of draggables 2012-01-15 17:14:18 +01:00
Paul van Tilburg 87a9aa2f27 Make our style CSS override the CSS from highlight.js; set body font family 2012-01-15 16:19:41 +01:00
Paul van Tilburg 2537e0ef77 Only apply syntax highlighting to code now that we know the type 2012-01-15 16:19:12 +01:00
Paul van Tilburg 3e0d783454 Wrap the content in a div with title and comments; add some style 2012-01-15 16:18:23 +01:00
Paul van Tilburg 7ffe87a70c Set the draggable name by default to the original filename 2012-01-15 16:17:28 +01:00