Commit Graph

25 Commits

Author SHA1 Message Date
Paul van Tilburg 0dfe4b52f2 Split the draggable div generating code from Views#draggables ; added the Draggable controller. 2010-09-14 17:03:03 +02:00
Paul van Tilburg 3bb1185267 Removed some cruft debug info generating code. 2010-09-14 17:02:21 +02:00
Paul van Tilburg 0ce1fcb4f0 Added application and source documentation. 2010-09-12 13:56:24 +02:00
Paul van Tilburg fd29454796 Merge branch 'master' of git+ssh://git.luon.net/git/plemp 2010-09-12 12:38:35 +02:00
Paul van Tilburg ff5481df13 Set up the draggables 'on load', no need for a script element per draggable. 2010-09-12 12:38:15 +02:00
Paul van Tilburg 0fe45a24ee Remove draggable entries from the database if the corresponding file is gone. 2010-09-12 12:38:12 +02:00
Paul van Tilburg 31feb93d96 Added support for the Plus key (shows the add/upload dialog). 2010-09-12 12:36:20 +02:00
Paul van Tilburg 24dec53ae5 Merge branch 'master' of git+ssh://git.luon.net/git/plemp 2010-09-12 00:33:11 +02:00
Paul van Tilburg f151100f2d Improved the mouse cursor for the add button. 2010-09-12 00:33:06 +02:00
Paul van Tilburg 65fea73f85 Fixed problem where draggables are moved on update during drags or before commit. 2010-09-12 00:32:40 +02:00
Paul van Tilburg f633696e7e Some Javascript refactoring.
* Moved all initialisation stuff to init_plemp().
 * No longer set and user BaseUrl but use document.baseURI instead.
 * Added the function key_handler() for handling key presses.
 * Added functionality to dismiss the add/upload dialog when pressing Escape.
2010-09-11 18:59:10 +02:00
Paul van Tilburg 3be69752f2 Added the upload/add dialog. 2010-09-11 13:24:46 +02:00
Paul van Tilburg 4c850354e8 Layout tweaks: line numbers for text, WIP upload dialog. 2010-09-11 00:13:51 +02:00
Paul van Tilburg 3b43695538 Implemented distributed moving of draggables via Ajax. 2010-09-11 00:13:10 +02:00
Paul van Tilburg d78ec2e6c8 Implemented basic database support; dropped the Positions hash. 2010-09-10 22:03:00 +02:00
Paul van Tilburg 060a9824fb Fixed saving positions when your not using Plemp! locally. 2010-09-10 21:15:59 +02:00
Paul van Tilburg e7b4425936 Added support for audio and video (using an HTML5 hack). 2010-09-10 21:00:24 +02:00
Paul van Tilburg a97cb237f2 Raise Z-index on drag; moved draggable specific JS code to dragreg.js. 2010-09-10 18:34:16 +02:00
Paul van Tilburg 37138619c0 Added support for other file types than images.
* Use mime/types library for MIME type management.
 * Use CodeRay for syntax highlighting code/text files.
 * Added code to observe the drags; fixed committing position changes to the app.
 * Commenced work on the Z-index problem.
2010-09-10 17:46:24 +02:00
Paul van Tilburg 56216b3bea Added upload/.placeholder so the directory gets created.
* Modified the main view to ignore the placeholder.
2010-07-29 23:50:41 +02:00
Paul van Tilburg ed2453cc03 Add placeholder so that the upload dir exists too. 2010-06-19 09:42:26 +02:00
Paul van Tilburg 0555395095 Switched to using scriptaculous for dragging support.
* Moved inline CSS to public/plemp.css.
 * Improved default for initial random positions.
 * Replaced drag.js by dragreg.js which is going to do the position changes
   registration via the Draggables object.
 * Added Move effect for initial placing.
2010-06-19 00:51:58 +02:00
Paul van Tilburg 039bd6f0aa Added upload support; load and show uploaded images instead of dummies. 2010-06-16 22:51:45 +02:00
Paul van Tilburg ab0fecd06e Added upload support (in upload/ for now). 2010-06-16 21:32:22 +02:00
Paul van Tilburg cf93b1d8fc Added some tests as initial starting point. 2010-06-16 20:57:00 +02:00