Skip to content
Snippets Groups Projects
Commit 45d05808 authored by Adrian Lang's avatar Adrian Lang
Browse files

Add target-specific class to section edit button

darcs-hash:20091126121428-e4919-8c21d358a76148a9319bf223d0fa1baba8c92656.gz
parent be615a48
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ function html_secedit_button($matches){
'lines' => $section,
'edittarget' => $edittarget,
'rev' => $INFO['lastmod']),
'post', $name);
'post', $name, 'editbutton_' . $edittarget);
$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=''){
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 .= '<input type="submit" value="'.htmlspecialchars($label).'" class="button" ';
$class .= ' button';
$ret .= '<input type="submit" value="'.hsc($label).'" class="' . hsc($class) . '" ';
if($akey){
$tip .= ' ['.strtoupper($akey).']';
$ret .= 'accesskey="'.$akey.'" ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment