diff options
author | Anika Henke <anika@selfthinker.org> | 2015-07-12 19:05:43 +0100 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2015-07-12 19:05:43 +0100 |
commit | ae614416a5d7f5cab6c5b82a0c45f587d7fa9c01 (patch) | |
tree | ccf67b3af75257730c1b38d01d91a3d36b92376e /inc/form.php | |
parent | 619a02f57dbe49efa287f054aee381edaf3e0397 (diff) | |
download | rpg-ae614416a5d7f5cab6c5b82a0c45f587d7fa9c01.tar.gz rpg-ae614416a5d7f5cab6c5b82a0c45f587d7fa9c01.tar.bz2 |
changed all input type=submit buttons to button type=submit button for better stylability
Diffstat (limited to 'inc/form.php')
-rw-r--r-- | inc/form.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/form.php b/inc/form.php index 748983281..91a171555 100644 --- a/inc/form.php +++ b/inc/form.php @@ -400,7 +400,7 @@ function form_makeWikiText($text, $attrs=array()) { function form_makeButton($type, $act, $value='', $attrs=array()) { if ($value == '') $value = $act; $elem = array('_elem'=>'button', 'type'=>$type, '_action'=>$act, - 'value'=>$value, 'class'=>'button'); + 'value'=>$value); if (!empty($attrs['accesskey']) && empty($attrs['title'])) { $attrs['title'] = $value . ' ['.strtoupper($attrs['accesskey']).']'; } @@ -761,7 +761,9 @@ function form_wikitext($attrs) { */ function form_button($attrs) { $p = (!empty($attrs['_action'])) ? 'name="do['.$attrs['_action'].']" ' : ''; - return '<input '.$p.buildAttributes($attrs,true).' />'; + $value = $attrs['value']; + unset($attrs['value']); + return '<button '.$p.buildAttributes($attrs,true).'>'.$value.'</button>'; } /** |