[Bps-public-commit] r12693 - in pie/branches/named-params/pieplate/PIE-Plate/share/web/static: css

jesse at bestpractical.com jesse at bestpractical.com
Mon May 26 09:48:39 EDT 2008


Author: jesse
Date: Mon May 26 09:48:38 2008
New Revision: 12693

Modified:
   pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css
   pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js

Log:
can has trashcan

Modified: pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css
==============================================================================
--- pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css	(original)
+++ pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css	Mon May 26 09:48:38 2008
@@ -1,3 +1,18 @@
+
+#trashy {
+    display: block;
+    position: fixed;
+    top: 2em;
+    right:2em;
+    padding: 3em;
+    width: 5em;
+    border: 3px solid red;
+    -moz-border-radius: 0.5em;
+}
+
+
+
+
 .lorzy-expression, .lorzy-target {
         min-height: 1em;
        border: 2px solid #fff;
@@ -75,4 +90,3 @@
     opacity: 0.2;
 }
 
-

Modified: pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js
==============================================================================
--- pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js	(original)
+++ pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js	Mon May 26 09:48:38 2008
@@ -25,6 +25,23 @@
 
 
 
+var trashable_args = {
+            accept: '#wrapper .lorzy-expression',
+            greedy: 'true',
+            hover: 'pointer',
+            activeClass: 'droppable-active',
+            hoverClass: 'droppable-hover',
+            tolerance: 'pointer',
+            drop: function(ev, ui) { 
+                      var orig = jQuery(ui.draggable); 
+                      if (!orig.parent().hasClass('library')) {
+                    orig.replaceWith(lorzy_make_empty_drop_target());
+                    orig.droppable(droppable_args);
+                   } 
+                    }
+};
+
+
 
 
 
@@ -143,8 +160,13 @@
     jQuery('#wrapper').after(jQuery('<a>Traverse</a>').attr('id', 'clicky'));
     jQuery('#wrapper').after(jQuery('<a>Test</a>').attr('id', 'testy'));
 
+    jQuery('#wrapper').after(jQuery('<div>Trash</div>').attr('id', 'trashy'));
 jQuery('#wrapper .lorzy-expression, #wrapper .lorzy-target').droppable(droppable_args);
 
+    jQuery('#trashy').droppable(trashable_args);
+
+
+
     jQuery('#testy').click(function () {
         jQuery.ajax({
     'url': '/=/action/Pie.Plate.Action.RunL.xml',



More information about the Bps-public-commit mailing list