commit 9ebdf8ad614287124ee3453d261ab49cd80d0e01
parent acf265e5785b348773b34e568ee95506d071d695
Author: dankert <devnull@localhost>
Date: Thu, 17 Feb 2011 23:44:00 +0100
Anzeige von Hinweismeldungen in der Statusleiste.
Diffstat:
3 files changed, 51 insertions(+), 7 deletions(-)
diff --git a/themes/default/css/layout.css b/themes/default/css/layout.css
@@ -98,9 +98,14 @@ div#tree
padding:5px;
width:25%;
margin-left:0px;
- height:100%;
float:left;
}
+
+div#tree, div#content
+{
+ height:70%;
+}
+
div#content
{
padding:5px;
@@ -691,6 +696,7 @@ div.tree.closed
}
div#tree div.content,
+div#content div.content,
ul.tree li.last,
ul.tree li:last-child
{
@@ -703,7 +709,6 @@ body > div { display:none; }
-
/* Menue-Reiter */
div.window ul.menu { /* general settings */
@@ -715,7 +720,8 @@ list-style-type: none;
padding: 3px 10px 3px 10px; /* THIRD number must change with respect to padding-top (X) below */
}
-div.window ul.menu li a,div.window ul.menu li div{ /* do not change */
+div.window ul.menu li a,
+div.window ul.menu li div{ /* do not change */
-moz-border-radius-topleft:5px; /* Mozilla */
-webkit-border-radius-topleft:5px; /* Webkit */
@@ -741,7 +747,7 @@ background-color: #fff; /* set background color to match above border color */
div.window ul.menu li.action_active a { /* settings for selected tab link */
background-color: #fff; /* set selected tab background color as desired */
color: #000; /* set selected tab link color as desired */
-position: relative;
+xposition: relative;
top: 1px;
padding-top: 4px; /* must change with respect to padding (X) above and below */
}
@@ -798,6 +804,12 @@ div.window div.content {
height:100%;
}
+div.content table
+{
+ overflow:auto;
+ border:2px silver;
+}
+
table tr.headline > td {
background-color: silver;
background: -moz-linear-gradient(top, gray, silver);
@@ -859,4 +871,27 @@ div.window ul.menu li a, /* Tabs */
div.window ul.menu li > span /* Tabs */
{
background-color: gray;
-}-
\ No newline at end of file
+}
+
+
+
+/* S t a t u s z e i l e */
+div.window div.status
+{
+ height:35px; padding:10px;
+}
+div.window div.status div.error {
+ xborder:1px solid silver;
+ background: url(../images/notice_error.png) no-repeat;
+ padding-left:20px;
+}
+div.window div.status div.warn {
+ xborder:1px solid silver;
+ background: url(../images/notice_warn.png) no-repeat;
+ padding-left:20px;
+}
+div.window div.status div.ok {
+ xborder:1px solid silver;
+ background: url(../images/notice_ok.png) no-repeat;
+ padding-left:20px;
+}
diff --git a/themes/default/include/html/window-end.inc.php b/themes/default/include/html/window-end.inc.php
@@ -1,5 +1,8 @@
</div>
+
+<div class="status"></div>
+
</div>
<?php if ($showDuration)
diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js
@@ -191,6 +191,7 @@ function closeBranch(li,type,id)
//alert("schließen:"+$(li).html() );
$(li).children('ul').fadeOut('slow').remove();
$(li).children('div.tree').unbind('click');
+ $(li).children('div.tree').removeClass('open').addClass('closed');
//alert( "wieder öffnen: "+$(li).children('div').first().html());
$(li).children('div.tree').click( function() { loadBranch($(this).parent(),type,id) });
//$(li).children('img.tree').attr('src',OR_THEMES_EXT_DIR+'default/images/tree_plus.gif');
@@ -199,6 +200,8 @@ function closeBranch(li,type,id)
function formSubmit(form)
{
+ $('.error').removeClass('error');
+
$(form).fadeTo(0.5);
var params = $(form).serializeArray();
//params['json'] = 'true';
@@ -219,7 +222,11 @@ function doResponse(data,status)
alert('Error while saving the values: ' + status);
$.each(data['notices'], function(idx,value) {
- alert(value.text);
+ $('div.window div.status').html('<div>');
+ $('div.window div.status div').addClass( value.status );
+ $('div.window div.status div').append( value.text );
+ $('div.window div.status div').delay(3000).fadeOut(2500);
+ //alert(value.text);
});
$.each(data['errors'], function(idx,value) {