cvs: pear /Pager Common.php
| From: | Lorenzo Alberton | Date: | Tue, 29 Nov 2005 17:51:27 +0000 |
| Subject: | cvs: pear /Pager Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36595@lists.php.net to get a copy of this message | ||
quipo Tue Nov 29 12:51:27 2005 EDT
Modified files:
/pear/Pager Common.php
Log:
- removed onclick action in _renderLink(), moved to href attribute.
- fixed missing ";"
thanks to Mark Veldman
http://cvs.php.net/diff.php/pear/Pager/Common.php?r1=1.42&r2=1.43&ty=u
Index: pear/Pager/Common.php
diff -u pear/Pager/Common.php:1.42 pear/Pager/Common.php:1.43
--- pear/Pager/Common.php:1.42 Tue Nov 29 11:09:27 2005
+++ pear/Pager/Common.php Tue Nov 29 12:51:24 2005
@@ -33,7 +33,7 @@
* @author Richard Heyes <richard@phpguru.org>
* @copyright 2003-2005 Lorenzo Alberton, Richard Heyes
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: Common.php,v 1.42 2005/11/29 16:09:27 quipo Exp $
+ * @version CVS: $Id: Common.php,v 1.43 2005/11/29 17:51:24 quipo Exp $
* @link http://pear.php.net/package/Pager
*/
@@ -672,7 +672,7 @@
);
}
if ($this->_httpMethod == 'POST') {
- return sprintf('<a onclick=\'%s\'
href="javascript:void(0);"%s title="%s">%s</a>',
+ return sprintf("<a href='javascript:%s'%s
title='%s'>%s</a>",
$this->_generateFormOnClick($this->_url, $this->_linkData),
empty($this->_classString) ? '' : '
'.$this->_classString,
$altText,
@@ -719,7 +719,7 @@
}
if (!empty($this->_formID)) {
- $str = 'var form =
document.getElementById("'.$this->_formID.'"); var input = ""
';
+ $str = 'var form =
document.getElementById("'.$this->_formID.'"); var input = "";
';
} else {
$str = 'var form = document.createElement("form"); var input =
""; ';
}