[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] calendar/templates/default contacts_popup.tpl, 1.3
From: |
skwashd |
Subject: |
[Phpgroupware-cvs] calendar/templates/default contacts_popup.tpl, 1.3 |
Date: |
Fri, 28 Oct 2005 05:17:00 +0200 |
Update of calendar/templates/default
Modified Files:
Branch: MAIN
contacts_popup.tpl lines: +11 -2
Log Message:
fixed remove not working properly
====================================================
Index: calendar/templates/default/contacts_popup.tpl
diff -u calendar/templates/default/contacts_popup.tpl:1.2
calendar/templates/default/contacts_popup.tpl:1.3
--- calendar/templates/default/contacts_popup.tpl:1.2 Fri Oct 28 01:43:59 2005
+++ calendar/templates/default/contacts_popup.tpl Fri Oct 28 03:17:22 2005
@@ -60,7 +60,7 @@
var oSource =
document.getElementById('search_list');
var oTarget =
document.getElementById('selected_list');
- for ( i = 0; i < oSource.options.length; ++i )
+ for ( var i = 0; i < oSource.options.length;
++i )
{
if ( oSource.options.item(i).selected )
{
@@ -83,13 +83,22 @@
function removeContact()
{
var oSource =
document.getElementById('selected_list');
-
+
for ( var i = 0; i < oSource.options.length;
++i )
{
if ( oSource.options[i].selected )
{
oSource.options[i] = null;
+ i = 0;//this is a hack that i
am not proud of, but it works :)
}
+ }
+
+ var oOpenerSelect =
window.opener.document.getElementById('event_participants');
+ removeAllChildren(oOpenerSelect);
+ adopt(oSource, oOpenerSelect);
+ for ( i = 0; i < oOpenerSelect.options.length;
++i)
+ {
+ oOpenerSelect.options.item(i).selected
= true;
}
return false;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] calendar/templates/default contacts_popup.tpl, 1.3,
skwashd <=