diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 20:40:33 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 20:40:33 +0200 |
commit | d071b66c820e5b1ecc60efc27a15e113c88832af (patch) | |
tree | 361cace724208a6362c3c0fff510bf59f79634b1 /lib/plugins/styler/admin.php | |
parent | a93f9a7aab0ddcc00415f5b4e0c6876751a4d4c1 (diff) | |
download | rpg-d071b66c820e5b1ecc60efc27a15e113c88832af.tar.gz rpg-d071b66c820e5b1ecc60efc27a15e113c88832af.tar.bz2 |
autopreview in styler plugin
Diffstat (limited to 'lib/plugins/styler/admin.php')
-rw-r--r-- | lib/plugins/styler/admin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/plugins/styler/admin.php b/lib/plugins/styler/admin.php index 432b22279..a66dfbb11 100644 --- a/lib/plugins/styler/admin.php +++ b/lib/plugins/styler/admin.php @@ -87,13 +87,13 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { echo '<tr>'; echo '<td>'.$name.'</td>'; - echo '<td><input name="tpl['.hsc($key).']" value="'.hsc($value).'" '.$this->colorClass($key).' />'; + echo '<td><input type="text" name="tpl['.hsc($key).']" value="'.hsc($value).'" '.$this->colorClass($key).' />'; echo '</tr>'; } echo '</table>'; echo '<p class="center">'; - echo '<input type="submit" name="run[preview]" value="'.$this->getLang('btn_preview').'">'; + echo '<input type="submit" name="run[preview]" class="btn_preview" value="'.$this->getLang('btn_preview').'">'; echo '<input type="submit" name="run[reset]" value="'.$this->getLang('btn_reset').'">'; #FIXME only if preview.ini exists echo '</p>'; @@ -139,9 +139,9 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { } /** - * saves the preview.ini + * saves the preview.ini (alos called from ajax directly) */ - protected function run_preview() { + public function run_preview() { global $conf; $ini = $conf['cachedir'].'/preview.ini'; io_saveFile($ini, $this->makeini()); |