From f74ed7d5e00d13d6a4c6d8e4b12ae704fab6f488 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 15 Apr 2004 12:44:31 +0000 Subject: [PATCH] no double click handler if edit page is selected --- includes/SkinPHPTal.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index d6b18c88a0..183bff99b4 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -146,7 +146,11 @@ $tpl->set('personal_urls', $this->buildPersonalUrls()); $content_actions = $this->buildContentActionUrls(); $tpl->setRef('content_actions', &$content_actions); - if(isset($content_actions['edit']['href']) && $wgUser->getOption("editondblclick") ) { + // XXX: attach this from javascript, same with section editing + if(isset($content_actions['edit']['href']) && + !(isset($content_actions['edit']['class']) && $content_actions['edit']['class'] != '') && + $wgUser->getOption("editondblclick") ) + { $tpl->set('body-ondblclick', 'document.location = "' .$content_actions['edit']['href'] .'";'); } else { $tpl->set('body-ondblclick', ''); -- 2.20.1