openrat-cms

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

commit c1bafcbc5e74dc117febe232e6393f2807093a6c
parent fdee5b348e50a537ee6c15a3d352ee4d6fe50708
Author: dankert <dankert@laptop-jan>
Date:   Sun, 17 Mar 2013 23:33:08 +0100

Titelleiste für Dialoge anzeigen, Formularknöpfe immer anzeigen.

Diffstat:
themes/default/css/openrat.css.php | 2+-
themes/default/include/html/form-end.inc.php | 2+-
themes/default/include/html/header.inc.php | 2+-
themes/default/js/openrat.js | 4++--
themes/default/js/plugin/jquery-plugin-orLinkify.js | 2+-
5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/themes/default/css/openrat.css.php b/themes/default/css/openrat.css.php @@ -1161,7 +1161,7 @@ div.content div.bottom padding-right:40px; bottom:0px; right:0px; - visibility:hidden; + xvisibility:hidden; } div.content div.bottom > div.command diff --git a/themes/default/include/html/form-end.inc.php b/themes/default/include/html/form-end.inc.php @@ -2,7 +2,7 @@ <!-- Ignore: --><form> <div class="bottom"> - <div class="command <?php echo $attr_tmp_visible?'visible':'invisible' ?>"> + <div class="command <?php echo $attr_tmp_visible?'visible':'xinvisible' ?>"> <input type="button" class="submit ok" value="<?php echo $attr_tmp_ok_label ?>" onclick="$(this).closest('div.sheet').find('form').submit(); " /> diff --git a/themes/default/include/html/header.inc.php b/themes/default/include/html/header.inc.php @@ -2,7 +2,7 @@ <div class="headermenu"> <?php foreach( explode(',',$attr_views) as $attr_tmp_view ) { ?> <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-method="<?php echo $attr_tmp_view ?>"> + <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$attr_tmp_view) ?>" data-method="<?php echo $attr_tmp_view ?>"> <img src="<?php echo $image_dir ?>icon/<?php echo $attr_tmp_view ?>.png" title="<?php echo lang('MENU_'.$attr_tmp_view) ?>" /> </a> </div> diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -783,13 +783,13 @@ function startView( element,method ) * @param action Action * @param id Id */ -function startDialog( method,modal ) +function startDialog( name,method,modal ) { var action = $('#panel-content').find('li.active').data('action'); var id = $('#panel-content').find('li.active').data('id' ); $('div#filler').fadeTo(500,0.5); - $('div#dialog').html('<div class="content" />'); + $('div#dialog').html('<div class="header"><ul class="views"><li class="action active"><img class="icon" title="" src="./themes/default/images/icon/'+method+'.png" /><div class="tabname" style="width:100px;">'+name+'</div></li></ul></div><div class="content" />'); $('div#dialog').show(); loadView( $('div#dialog div.content'), action,method,id ); diff --git a/themes/default/js/plugin/jquery-plugin-orLinkify.js b/themes/default/js/plugin/jquery-plugin-orLinkify.js @@ -32,7 +32,7 @@ jQuery.fn.orLinkify = function() else if ( type == 'dialog' ) { - startDialog($(this).attr('data-method'),false ); + startDialog($(this).attr('data-name'),$(this).attr('data-method'),false ); } else if ( type == 'url' )