diff --git a/phpgwapi/inc/class.javascript.inc.php b/phpgwapi/inc/class.javascript.inc.php index f144de598d..0a45999589 100644 --- a/phpgwapi/inc/class.javascript.inc.php +++ b/phpgwapi/inc/class.javascript.inc.php @@ -2,10 +2,10 @@ /**************************************************************************\ * eGroupWare API - JavaScript * * Written by Dave Hall skwashd at phpgroupware.org * - * Copyright (C) 2003 Free Software Foundation Inc * + * Copyright (C) 2003 Free Software Foundation Inc * * -------------------------------------------------------------------------* * This library is part of the eGroupWare API * - * http://www.egroupware.org/api * + * http://www.egroupware.org/api * * ------------------------------------------------------------------------ * * This program is Free Software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -27,7 +27,7 @@ * * * This way a theme can see if this is a defined object and include the data, - * while the is_object() wrapper prevents whiping out existing data held in + * while the is_object() wrapper prevents whiping out existing data held in * this instance variables, primarily the $files variable. * * Note: The package argument is the subdirectory of js - all js should live in subdirectories @@ -62,7 +62,7 @@ * @var boolean Load JS API ? */ var $js_api; - + /** * Constructor * @@ -73,7 +73,7 @@ //$this->t =& CreateObject('phpgwapi.Template', ExecMethod('phpgwapi.phpgw.common.get_tpl_dir','phpgwapi')); } - + /** * Returns the javascript required for displaying a popup message box * @@ -113,7 +113,7 @@ { return 'return confirm("'.lang($msg).'");'; } - + /** * Used for generating the list of external js files to be included in the head of a page * @@ -139,7 +139,7 @@ { $pkg = $pkg == '.' ? '' : $pkg.'/'; $browser = $browser == '.' ? '' : $browser.'/'; - + $f = "/$app/js/$pkg$browser$file" . '.js?'. filectime(EGW_INCLUDE_ROOT."/$app/js/$pkg$browser$file.js") .'">'; $links .= ''."\n"; - + return $jsCode; } @@ -369,7 +370,7 @@ { return ''; } - + if ($new) { $jsCode = "$name = new Object();\n"; @@ -408,7 +409,7 @@ default: $value = 'null'; } - + $jsCode .= $name."['".$index."'] = ".$value.";\n"; }