[Zope-CVS] CVS: Products/PageDesign/www - element_add.gif:1.1.2.1 pagedesign.css:1.1.1.1.2.3 scripts.js:1.2.2.3

Shane Hathaway shane@cvs.zope.org
Tue, 6 Aug 2002 22:37:23 -0400


Update of /cvs-repository/Products/PageDesign/www
In directory cvs.zope.org:/tmp/cvs-serv25738/www

Modified Files:
      Tag: page-redesign-branch
	pagedesign.css scripts.js 
Added Files:
      Tag: page-redesign-branch
	element_add.gif 
Log Message:
It now opens the palette add element dialog.  Now we just need a palette!


=== Added File Products/PageDesign/www/element_add.gif ===
GIF89a    &&''11::,,U`bsZZGG//$$R/^Rr[uqU~؆g55  ^T1_iul۪٧((   bBmuҏ˜$$$hhh)))[[[៟VVVHHHRRRޫׂN$$YYYvvvLLLۢъtߨ:%%===]]]999ϋӉYև2%%uzЇkݣ7##pTzτ{ޤ7T2`n{}8!
  ,       [   

 
 '()*+,-./01 26789:*@-ABC D  JKLMNɍ *,VЖ؉ ;

=== Products/PageDesign/www/pagedesign.css 1.1.1.1.2.2 => 1.1.1.1.2.3 ===
 }
 
 .design-target {
-  border: 2px solid black;
+  border: 2px solid #eeeeee;
+  background-color: #eeeeee;
 }


=== Products/PageDesign/www/scripts.js 1.2.2.2 => 1.2.2.3 ===
 var dragging = false;
 var highlighted_target = null;
 var all_targets = [];
+var design_url = '';  // Set by PageDesign outside this script
 
 
 function hasAncestor(node, ancestor) {
@@ -35,7 +36,7 @@
 
 function unhighlightTarget() {
   if (highlighted_target) {
-    highlighted_target.style.border = "2px solid black";
+    highlighted_target.style.border = "2px solid #eeeeee";
     highlighted_target = null;
   }
 }
@@ -174,3 +175,7 @@
   initDesignNodes(document);
 }
 
+function addElementDialog(target_path) {
+  var url = design_url + '/addElementDialog?target_path=' + target_path;
+  window.open(url, '', 'width=640, height=480, resizable, scrollbars, status');
+}