diff options
author | Adrian Lang <lang@cosmocode.de> | 2009-11-30 14:10:48 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-01-19 16:44:13 +0100 |
commit | d822118c9a034bb7ecb820df6ac46cb078d5d4b9 (patch) | |
tree | 8b2fc5b3ba13bd5b287259e5229c709248724b8f | |
parent | 0b0fbf677e031723a4a9c5b2d194d7d7fda5d7c6 (diff) | |
download | rpg-d822118c9a034bb7ecb820df6ac46cb078d5d4b9.tar.gz rpg-d822118c9a034bb7ecb820df6ac46cb078d5d4b9.tar.bz2 |
Move edit button class to the topmost div
darcs-hash:20091130131048-e4919-20c11bb664df45e76a4de30dee53e067dfa9d788.gz
-rw-r--r-- | inc/html.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/inc/html.php b/inc/html.php index 7f061ffbd..8a215f440 100644 --- a/inc/html.php +++ b/inc/html.php @@ -98,13 +98,13 @@ function html_secedit_button($matches){ $name = $matches[2]; $secedit = ''; - $secedit .= '<div class="secedit">'; + $secedit .= '<div class="secedit editbutton_' . $edittarget . '">'; $secedit .= html_btn('secedit',$ID,'', array('do' => 'edit', 'lines' => $section, 'edittarget' => $edittarget, 'rev' => $INFO['lastmod']), - 'post', $name, 'editbutton_' . $edittarget); + 'post', $name); $secedit .= '</div>'; return $secedit; } @@ -149,7 +149,7 @@ function html_topbtn(){ * * @author Andreas Gohr <andi@splitbrain.org> */ -function html_btn($name,$id,$akey,$params,$method='get',$tooltip='', $class = ''){ +function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){ global $conf; global $lang; @@ -187,9 +187,7 @@ function html_btn($name,$id,$akey,$params,$method='get',$tooltip='', $class = '' $tip = htmlspecialchars($label); } - $class .= ' button'; - - $ret .= '<input type="submit" value="'.hsc($label).'" class="' . hsc($class) . '" '; + $ret .= '<input type="submit" value="'.hsc($label).'" class="button" '; if($akey){ $tip .= ' ['.strtoupper($akey).']'; $ret .= 'accesskey="'.$akey.'" '; |