openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit de07ef40791005d54726dfd459646d3c33934b78
parent 8a83ce8bef82841fb578540636abad03e53b4dfc
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 29 Nov 2017 01:10:31 +0100

Fix: Korrekte Ausgabe der Button-Beschriftungen unter dem Formular.

Diffstat:
themes/default/include/html/form/Form.class.php | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/themes/default/include/html/form/Form.class.php b/themes/default/include/html/form/Form.class.php @@ -66,19 +66,18 @@ HTML; protected function end() { + $label = $this->htmlvalue($this->label); echo <<<HTML <div class="bottom"> <div class="command {$this->visible}"> - <input type="button" class="submit ok" value="{$this->label}" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + <input type="button" class="submit ok" value="{$label}" onclick="$(this).closest('div.sheet').find('form').submit(); " /> <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> HTML; if ($this->cancel) { - echo <<<HTML - <input type="button" class="submit cancel" value="{lang('CANCEL')}" onclick="$('div#dialog').hide(); $('div#filler').fadeOut(500); $(this).closest('div.panel').find('ul.views > li.active').click();" /> -HTML; + echo '<input type="button" class="submit cancel" value="<?php echo lang("CANCEL") ?>" onclick="'."$(div#dialog').hide(); $('div#filler').fadeOut(500); $(this).closest('div.panel').find('ul.views > li.active').click();".'" />'; } echo <<<HTML </div>