diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/media.php | 2 | ||||
-rw-r--r-- | inc/parser/xhtml.php | 3 |
2 files changed, 2 insertions, 3 deletions
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 ' <a href="'.DOKU_BASE.'lib/exe/mediamanager.php?delete='.rawurlencode($item['id']). '&sectok='.getSecurityToken().'" '. - 'onclick="return confirm(\''.$ask.'\')" onkeypress="return confirm(\''.$ask.'\')">'. + 'onclick="return confirm(\''.$ask.'\')">'. '<img src="'.DOKU_BASE.'lib/images/trash.png" alt="'.$lang['btn_delete'].'" '. 'title="'.$lang['btn_delete'].'" class="btn" /></a>'; } 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 ) { |