move egw_(message|app_header) from jsapi.js to egw_message.js available as egw(window).message(_msg, _type) and make it usable in popups too

This commit is contained in:
Ralf Becker 2014-02-06 15:42:45 +00:00
parent 7e672697fb
commit feb549c120
2 changed files with 84 additions and 6 deletions

View File

@ -5297,6 +5297,45 @@ div.admin-config form > table td {
div.admin-config form > table td b {
font-weight: bold;
}
/**
* Styles for different egw_message-types
*/
.success_message,
.warning_message,
.error_message {
color: red;
font-weight: normal;
font-style: italic;
text-align: left;
margin-left: 5px;
padding-left: 20px;
background-image: url(../images/check.png);
background-position: left;
background-repeat: no-repeat;
background-size: 16px;
}
.warning_message {
background-image: url(../images/dialog_warning.png);
}
.error_message {
font-weight: bold;
background-image: url(../images/dialog_error.png);
}
/**
* Message in popup
*/
body > div#egw_message {
background-color: lightyellow;
border-radius: 10px;
right: 5px;
top: 5px;
padding: 10px;
padding-left: 25px;
background-position-x: 5px;
border: 2px gray solid;
min-width: 100px;
z-index: 10;
}
/*
Printing
*/

View File

@ -325,3 +325,42 @@ div.admin-config form > table {
}
}
}
/**
* Styles for different egw_message-types
*/
.success_message, .warning_message, .error_message {
color: red;
font-weight: normal;
font-style: italic;
text-align: left;
margin-left: 5px;
padding-left: 20px;
background-image: url(../images/check.png);
background-position: left;
background-repeat: no-repeat;
background-size: 16px;
}
.warning_message {
background-image: url(../images/dialog_warning.png);
}
.error_message {
font-weight: bold;
background-image: url(../images/dialog_error.png);
}
/**
* Message in popup
*/
body > div#egw_message {
background-color: lightyellow;
border-radius: 10px;
right: 5px;
top: 5px;
padding: 10px;
padding-left: 25px;
background-position-x: 5px;
border: 2px gray solid;
min-width: 100px;
z-index: 10;
}