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

@ -174,16 +174,16 @@ table.dialog-main-view {width: 100%;}
}
input.et2_textbox {font-size: 1.3em;}
.et2_label {
.color_100_gray;
vertical-align: bottom;
padding: 0px 0px 0px 3px !important;
}
td.space {
@ -265,7 +265,7 @@ tr.dialog-header4{
button[id="addressbook-edit_button[delete]"]{
float: right;
}
div.et2_hbox {
white-space: normal;
}
@ -324,4 +324,43 @@ div.admin-config form > table {
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;
}