phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] addressbook/inc/class.widget_lists.inc.php, 1.1.2.5


From: nomail
Subject: [Phpgroupware-cvs] addressbook/inc/class.widget_lists.inc.php, 1.1.2.5
Date: Thu, 20 May 2004 15:23:46 -0000

Update of /addressbook/inc
Modified Files:
        Branch: Version-0_9_16-branch
          class.widget_lists.inc.php

date: 2004/04/13 22:28:55;  author: jarg;  state: Exp;  lines: +0 -54

Log Message:
Remove the js function, now use the selectbox functions
=====================================================================
No syntax errors detected in -
=====================================================================
Index: addressbook/inc/class.widget_lists.inc.php
diff -u addressbook/inc/class.widget_lists.inc.php:1.1.2.4 
addressbook/inc/class.widget_lists.inc.php:1.1.2.5
--- addressbook/inc/class.widget_lists.inc.php:1.1.2.4  Tue Apr 13 22:24:45 2004
+++ addressbook/inc/class.widget_lists.inc.php  Tue Apr 13 22:28:55 2004
@@ -327,60 +327,6 @@
                {
                        $tmp= '
                        <SCRIPT LANGUAGE="JavaScript">
-                       function move(fboxname, tboxname, sboxname, cboxname) {
-                               var arrFbox = new Array();
-                               var arrTbox = new Array();
-                               var arrLookup = new Array();
-                               var i;
-
-                               fbox = 
document.'.$this->form_name.'.elements[fboxname];
-                               tbox = 
document.'.$this->form_name.'.elements[tboxname];
-
-                               for (i = 0; i < tbox.options.length; i++) 
-                               {
-                                       arrLookup[tbox.options[i].text] = 
tbox.options[i].value;
-                                       arrTbox[i] = tbox.options[i].text;
-                               }
-                               var fLength = 0;
-                               var tLength = arrTbox.length;
-                               for(i = 0; i < fbox.options.length; i++) 
-                               {
-                                       arrLookup[fbox.options[i].text] = 
fbox.options[i].value;
-                                       if (fbox.options[i].selected && 
fbox.options[i].value != "") 
-                                       {
-                                               arrTbox[tLength] = 
fbox.options[i].text;
-                                               tLength++;
-                                       }
-                                       else 
-                                       {
-                                               arrFbox[fLength] = 
fbox.options[i].text;
-                                               fLength++;
-                                       }
-                               }
-                               arrFbox.sort();
-                               arrTbox.sort();
-                               fbox.length = 0;
-                               tbox.length = 0;
-
-                               var c;
-                               for(c = 0; c < arrFbox.length; c++) 
-                               {
-                                       var no = new Option();
-                                       no.value = arrLookup[arrFbox[c]];
-                                       no.text = arrFbox[c];
-                                       fbox[c] = no;
-                               }
-                               for(c = 0; c < arrTbox.length; c++) 
-                               {
-                                       var no = new Option();
-                                       no.value = arrLookup[arrTbox[c]];
-                                       no.text = arrTbox[c];
-                                       tbox[c] = no;
-                               }
-
-                               if(sboxname && cboxname){
-                               move_cbo(sboxname, cboxname);}
-                       }
 
                        function move_cbo(sboxname, cboxname) {
                                sbox = 
document.'.$this->form_name.'.elements[sboxname];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]