From 45d0580848a1c48ed59ed416949c0efb4cf790f8 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Thu, 26 Nov 2009 13:14:28 +0100 Subject: Add target-specific class to section edit button darcs-hash:20091126121428-e4919-8c21d358a76148a9319bf223d0fa1baba8c92656.gz --- inc/html.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index dda797f9e..7f061ffbd 100644 --- a/inc/html.php +++ b/inc/html.php @@ -104,7 +104,7 @@ function html_secedit_button($matches){ 'lines' => $section, 'edittarget' => $edittarget, 'rev' => $INFO['lastmod']), - 'post', $name); + 'post', $name, 'editbutton_' . $edittarget); $secedit .= ''; return $secedit; } @@ -149,7 +149,7 @@ function html_topbtn(){ * * @author Andreas Gohr */ -function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){ +function html_btn($name,$id,$akey,$params,$method='get',$tooltip='', $class = ''){ global $conf; global $lang; @@ -187,7 +187,9 @@ function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){ $tip = htmlspecialchars($label); } - $ret .= '