commit 4ccf7569630ee310d50ed2a8dd128dc592c5a000
parent f2270aa2c9436c0c67e1c873b8692861776e9100
Author: Jan Dankert <devnull@localhost>
Date: Wed, 26 Sep 2012 23:49:51 +0200
Hinweismeldungen einzeln anzeigen, Fehlermeldungen nicht automatisch ausblenden.
Diffstat:
2 files changed, 41 insertions(+), 19 deletions(-)
diff --git a/themes/default/css/layout.css b/themes/default/css/layout.css
@@ -93,40 +93,54 @@ div#tree
*/
-
/* N o t i c e */
div#noticebar
{
- visibility:none;
+ display:block;
position:fixed;
bottom:40px;
right:40px;
width:250px;
- border 2px solid gray;
- background-color:white;
+ z-index:113;
+}
+
+div#noticebar div.notice
+{
+ border: 2px solid black;
+
padding:5px;
- z-index:3;
+ margin:5px;
-moz-border-radius:5px; /* Mozilla */
-webkit-border-radius:5px; /* Webkit */
-khtml-border-radius:5px; /* Konqui */
-}
-
-div#noticebar div.notice
-{
- border-bottom:1px solid silver;
+ border-radius:5px; /* CSS 3 */
+
+ -webkit-box-shadow: 3px 2px 5px black;
+ -moz-box-shadow: 3px 2px 5px black;
+ box-shadow: 3px 2px 5px black;
+
+ display:none;
}
div#noticebar div.notice.ok
{
- border-left:4px solid green;
+ background-color: green;
}
div#noticebar div.notice.warn
{
- border-left:4px solid yellow;
+ background-color: yellow;
}
div#noticebar div.notice.error
{
- border-left:4px solid red;
+ background-color:red;
+}
+div#noticebar div.notice.error div.text
+{
+ font-weight: bold;
+}
+div#noticebar div.log
+{
+ font-family: monospace;
}
/* H o e h e n */
diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js
@@ -832,16 +832,22 @@ function doResponse(data,status,element)
$.each(value.log, function(name,value) {
$(notice).append('<div class="log">'+value+'</div>');
});
- $('#noticebar').prepend(notice).slideDown('fast').click( function()
- {
- $(this).fadeOut('fast',function() { $(this).empty(); } );
- } );
- $('#noticebar').delay('3000').slideUp('fast');
+ $('#noticebar').prepend(notice);
+ $('#noticebar div.notice').fadeIn();
+ $(notice).fadeIn().click( function()
+ {
+ $(this).fadeOut('fast',function() { $(this).remove(); } );
+ } );
+ if ( value.status == 'ok' )
+ $(notice).delay(3000).fadeOut( function() { $(this).remove(); } );
+
+ /*
$('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);
+ $('div.window div.status div').delay(3000).fadeOut(2500, function() { $(this).remove(); });
+ */
//alert( value.text );
});
@@ -854,9 +860,11 @@ function doResponse(data,status,element)
// Hinweismeldungen in Statuszeile anzeigen
if ( ! data.control ) {
+ /*
$('div.window div.status').html('<div />');
$('div.window div.status div').append( data );
$('div.window div.status div').delay(3000).fadeOut(2500);
+ */
//alert( value.text );
};