openrat-cms

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

commit c45d993601314f345f3a9f4bfd4220488a138b59
parent d45a6c86adfaf6bcef47b180f9be28a08ad4d1f8
Author: Jan Dankert <devnull@localhost>
Date:   Fri, 18 Nov 2011 23:39:44 +0100

Statt mehrerer 'parent()'-Aufrufe einfach 'closest(...)' verwenden.

Diffstat:
themes/default/layout/perspective/header.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/default/layout/perspective/header.php b/themes/default/layout/perspective/header.php @@ -65,7 +65,8 @@ function view_header( $name ) <div class="status"> </div> <div class="command"> - <input type="button" class="submit" value="<?php echo lang('BUTTON_OK') ?>" onclick="formSubmit( $(this).parent().parent().parent().find('form') );" /> + + <input type="button" class="submit" value="<?php echo lang('BUTTON_OK') ?>" onclick="$(this).closest('div.window').find('form').submit();" /> <!-- <input type="button" value="<?php echo lang('CANCEL') ?>" /> -->