[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] hrm/inc class.uiuser.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] hrm/inc class.uiuser.inc.php |
Date: |
Mon, 10 Apr 2006 09:26:20 +0000 |
CVSROOT: /sources/phpgroupware
Module name: hrm
Branch:
Changes by: Sigurd Nes <address@hidden> 06/04/10 09:26:20
Modified files:
inc : class.uiuser.inc.php
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/hrm/inc/class.uiuser.inc.php.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
Patches:
Index: hrm/inc/class.uiuser.inc.php
diff -u hrm/inc/class.uiuser.inc.php:1.13 hrm/inc/class.uiuser.inc.php:1.14
--- hrm/inc/class.uiuser.inc.php:1.13 Mon Apr 10 09:12:32 2006
+++ hrm/inc/class.uiuser.inc.php Mon Apr 10 09:26:20 2006
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package hrm
* @subpackage user
- * @version $Id: class.uiuser.inc.php,v 1.13 2006/04/10 09:12:32
sigurdne Exp $
+ * @version $Id: class.uiuser.inc.php,v 1.14 2006/04/10 09:26:20
sigurdne Exp $
*/
/**
@@ -552,19 +552,29 @@
$msgbox_data = $this->bocommon->msgbox_data($receipt);
$GLOBALS['phpgw_info']['flags']['java_script'] .= "\n"
- . '<script language ="javascript">' ."\n"
- . 'function modplace(form){' ."\n"
- . 'var val = form.place_id.value' ."\n"
- . 'var div1 = document.getElementById?' ."\n"
- . ' document.getElementById("div1") :' ."\n"
- . ' document.all.div1;' ."\n"
- . 'if(val == "new_place"){' ."\n"
- . 'div1.style.display = "block"' ."\n"
+ . '<script type="text/javascript">' ."\n"
+ . '//<[CDATA[' ."\n"
+ . '/**' ."\n"
+ . '* TODO Document function so others
understand it' ."\n"
+ . '*/' ."\n"
+ . 'function modplace(form)' ."\n"
+ . '{' ."\n"
+ . 'if ( !document.getElementById )' ."\n"
+ . '{' ."\n"
+ . 'return false; // doesn not support DOM so
bailout' ."\n"
. '}' ."\n"
- . 'else{' ."\n"
- . 'div1.style.display = "none"' ."\n"
+ . 'var val = form.place_id.value;' ."\n"
+ . 'var div1 = document.getElementById("div1");'
."\n"
+ . 'if(val == "new_place")' ."\n"
+ . '{' ."\n"
+ . 'div1.style.display = "block";' ."\n"
. '}' ."\n"
+ . 'else' ."\n"
+ . '{' ."\n"
+ . 'div1.style.display = "none";' ."\n"
. '}' ."\n"
+ . '}' ."\n"
+ . '//]]' ."\n"
. "</script>\n";
$data = array