openrat-cms

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

commit 2d3483d7ff8277f9b64b072a1d81e9cf0c3b3a69
parent 3ffd688b6b94edc25fac68142adcad40ef8a3b9d
Author: dankert <devnull@localhost>
Date:   Thu, 11 Sep 2008 20:56:45 +0200

Falls Edit-Mode vorhanden, aber nicht aktiv, dann OK-Button als "bearbeiten"-Button anzeigen.

Diffstat:
themes/default/include/html/button.inc.php | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/themes/default/include/html/button.inc.php b/themes/default/include/html/button.inc.php @@ -1,5 +1,11 @@ <?php if ($attr_type=='ok') + { + if ($this->isEditable() && $this->getRequestVar('mode')!='edit') + $attr_text = lang('MODE_EDIT'); + } + + if ($attr_type=='ok') $attr_type = 'submit'; if (isset($attr_src)) $attr_type = 'image';