summaryrefslogtreecommitdiff
path: root/inc/form.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2015-07-12 19:05:43 +0100
committerAnika Henke <anika@selfthinker.org>2015-07-12 19:05:43 +0100
commitae614416a5d7f5cab6c5b82a0c45f587d7fa9c01 (patch)
treeccf67b3af75257730c1b38d01d91a3d36b92376e /inc/form.php
parent619a02f57dbe49efa287f054aee381edaf3e0397 (diff)
downloadrpg-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.php6
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>';
}
/**