[Zope-CVS] CVS: Products/CompositePage/zmi - bottom.pt:1.3
zmi_edit.js:1.4
Shane Hathaway
shane at zope.com
Sat Dec 27 17:56:46 EST 2003
Update of /cvs-repository/Products/CompositePage/zmi
In directory cvs.zope.org:/tmp/cvs-serv20150/zmi
Modified Files:
bottom.pt zmi_edit.js
Log Message:
Add inline views (with an inline view selector) and tidied here and there.
=== Products/CompositePage/zmi/bottom.pt 1.2 => 1.3 ===
--- Products/CompositePage/zmi/bottom.pt:1.2 Sat Dec 27 13:40:21 2003
+++ Products/CompositePage/zmi/bottom.pt Sat Dec 27 17:56:45 2003
@@ -2,12 +2,12 @@
<div id="slot-element-context-menu" class="context-menu">
<div class="context-menu-header"
- filter="zmi_prepare_element_menu(pd_filter_object)"></div>
+ filter="composite_prepare_element_menu(pd_filter_object)"></div>
<div class="context-menu-item"
onmouseup="zmi_edit(pd_selected_item)"
filter="pd_selected_item">Edit...</div>
<div class="context-menu-item"
- onmouseup="zmi_change_view(pd_selected_items)"
+ onmouseup="composite_change_view(pd_selected_items)"
filter="pd_selected_items">Change View...</div>
<div class="separator" filter="pd_selected_item"></div>
<div class="context-menu-item"
@@ -23,7 +23,7 @@
<div id="slot-target-context-menu" class="context-menu">
<div class="context-menu-header"
- filter="zmi_prepare_target_menu(pd_filter_object)"></div>
+ filter="composite_prepare_target_menu(pd_filter_object)"></div>
<div class="context-menu-item" onmouseup="zmi_add(pd_selected_item)"
filter="pd_selected_item">Add...</div>
<div class="context-menu-item"
=== Products/CompositePage/zmi/zmi_edit.js 1.3 => 1.4 ===
--- Products/CompositePage/zmi/zmi_edit.js:1.3 Sat Dec 27 13:40:21 2003
+++ Products/CompositePage/zmi/zmi_edit.js Sat Dec 27 17:56:45 2003
@@ -13,39 +13,3 @@
var path = escape(target.getAttribute("target_path"));
document.location = transformer_url + "/showSlot?path=" + path;
}
-
-function zmi_prepare_element_menu(header) {
- // Prepares the header of the element context menu.
- var node;
- if (!pd_selected_item) {
- icon = null;
- text = '' + pd_selected_items.length + ' Elements Selected';
- }
- else {
- icon = pd_selected_item.getAttribute('icon');
- text = pd_selected_item.getAttribute('title');
- }
- while (header.childNodes.length)
- header.removeChild(header.childNodes[0]);
- if (icon) {
- node = document.createElement("img");
- node.setAttribute("src", icon);
- node.setAttribute("width", "16");
- node.setAttribute("height", "16");
- header.appendChild(node);
- }
- node = document.createTextNode(text);
- header.appendChild(node);
- return true;
-}
-
-function zmi_prepare_target_menu(header) {
- // Prepares the header of the target context menu.
- while (header.childNodes.length)
- header.removeChild(header.childNodes[0]);
- text = pd_selected_item.getAttribute('title') || 'Slot';
- node = document.createTextNode(text);
- header.appendChild(node);
- return true;
-}
-
More information about the Zope-CVS
mailing list