Skip to content
Snippets Groups Projects
Commit cf2c8e75 authored by Anika Henke's avatar Anika Henke
Browse files

changed input submits to buttons, fixed small RTL issue

parent 84e76a7e
No related branches found
No related tags found
No related merge requests found
......@@ -83,22 +83,22 @@ class admin_plugin_styling extends DokuWiki_Admin_Plugin {
echo '<tr>';
echo '<td><label for="tpl__'.hsc($key).'">'.$name.'</label></td>';
echo '<td><input type="text" name="tpl['.hsc($key).']" id="tpl__'.hsc($key).'" value="'.hsc($value).'" '.$this->colorClass($key).' /></td>';
echo '<td><input type="text" name="tpl['.hsc($key).']" id="tpl__'.hsc($key).'" value="'.hsc($value).'" '.$this->colorClass($key).' dir="ltr" /></td>';
echo '</tr>';
}
echo '</tbody></table>';
echo '<p>';
echo '<input type="submit" name="run[preview]" class="btn_preview primary" value="'.$this->getLang('btn_preview').'" /> ';
echo '<input type="submit" name="run[reset]" value="'.$this->getLang('btn_reset').'" />'; #FIXME only if preview.ini exists
echo '<button type="submit" name="run[preview]" class="btn_preview primary">'.$this->getLang('btn_preview').'</button> ';
echo '<button type="submit" name="run[reset]">'.$this->getLang('btn_reset').'</button>'; #FIXME only if preview.ini exists
echo '</p>';
echo '<p>';
echo '<input type="submit" name="run[save]" class="primary" value="'.$this->getLang('btn_save').'" />';
echo '<button type="submit" name="run[save]" class="primary">'.$this->getLang('btn_save').'</button>';
echo '</p>';
echo '<p>';
echo '<input type="submit" name="run[revert]" value="'.$this->getLang('btn_revert').'" />'; #FIXME only if local.ini exists
echo '<button type="submit" name="run[revert]">'.$this->getLang('btn_revert').'</button>'; #FIXME only if local.ini exists
echo '</p>';
echo '</form>';
......
......@@ -17,7 +17,7 @@ $lang['error'] = 'Sorry, this template does not support this functionality.';
$lang['btn_preview'] = 'Preview changes';
$lang['btn_save'] = 'Save changes';
$lang['btn_reset'] = 'Reset current changes';
$lang['btn_revert'] = 'Revert all styles back to the template\'s default';
$lang['btn_revert'] = 'Revert styles back to template\'s default';
// default guaranteed placeholders
$lang['__text__'] = 'Main text color';
......
......@@ -85,7 +85,7 @@ jQuery(function () {
};
// don't reload on our own buttons
jQuery('input[type=submit]').click(function(e){
jQuery(':button').click(function(e){
doreload = false;
});
......
#plugin__styling {
input.primary {
button.primary {
font-weight: bold;
}
[dir=rtl] & table input {
text-align: right;
}
}
#plugin__styling_loader {
......
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