From c44b968d237b2e6a6e56b5d9f6e2ac68b6a532fa Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 20 Jul 2008 13:07:38 +0200 Subject: removed all occurrences of onkeypress (FS#1449) darcs-hash:20080720110738-d5083-50a92498622bd6ca9850da8f9417974fb39ccc3d.gz --- inc/media.php | 2 +- inc/parser/xhtml.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/media.php b/inc/media.php index e8a19caf9..79e9a7a7e 100644 --- a/inc/media.php +++ b/inc/media.php @@ -450,7 +450,7 @@ function media_fileactions($item,$auth){ echo ' '. + 'onclick="return confirm(\''.$ask.'\')">'. ''.$lang['btn_delete'].''; } diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 91b462089..726bccd19 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -613,8 +613,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { //Display error on browsers other than IE $link['more'] = 'onclick="if(document.all == null){alert(\''. str_replace('\\\\n','\\n',addslashes($lang['nosmblinks'])). - '\');}" onkeypress="if(document.all == null){alert(\''. - str_replace('\\\\n','\\n',addslashes($lang['nosmblinks'])).'\');}"'; + '\');}"'; $link['name'] = $this->_getLinkTitle($name, $url, $isImage); if ( !$isImage ) { -- cgit v1.2.3