no double click handler if edit page is selected
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 15 Apr 2004 12:44:31 +0000 (12:44 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 15 Apr 2004 12:44:31 +0000 (12:44 +0000)
includes/SkinPHPTal.php

index d6b18c8..183bff9 100644 (file)
                        $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', '');