details: https://code.openbravo.com/erp/devel/pi/rev/29d705534d05
changeset: 16491:29d705534d05
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Thu May 10 21:06:22 2012 +0200
summary: Related to issue 20207: 'Message Box' style fix for classic windows
in IE9 and HTML5
diffstat:
web/js/utils.js | 23 +++++++++++++++++++++++
web/skins/Default/Openbravo_ERP_250.css | 8 ++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
diffs (92 lines):
diff -r bca89372cadc -r 29d705534d05 web/js/utils.js
--- a/web/js/utils.js Thu May 10 17:50:29 2012 +0200
+++ b/web/js/utils.js Thu May 10 21:06:22 2012 +0200
@@ -3402,6 +3402,29 @@
}
if (isIE9Strict) {
addStyleRule("th.DataGrid_Header_Cell", "height: 20px;");
+
+ var messageType = {};
+ messageType.name = ['ERROR', 'INFO', 'SUCCESS', 'WARNING'];
+ messageType.backgroundColor = ['C72F15', '5886BF', '7BBF58', 'ECE274'];
+ messageType.borderColor = ['461107', '1F3044', '2C441F', '535029'];
+ messageType.image = ['Error', 'Info', 'Success', 'Warning'];
+
+ for (var i=0; i < messageType.name.length; i++) {
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_LeftTrans', 'border-top-left-radius: 20px;');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_LeftTrans', 'background-color: #' + messageType.backgroundColor[i]
+ ';');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_LeftTrans', 'background-image:
url(../../Default/Common/MessageBox/message' + messageType.image[i] +
'Left.png);');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_LeftTrans', 'background-repeat: repeat-y;');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_TopLeft', 'border-top-left-radius: 20px;');
+
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_RightTrans', 'border-top-right-radius: 20px;');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_RightTrans', 'background-color: #' + messageType.backgroundColor[i]
+ ';');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_RightTrans', 'background-image:
url(../../Default/Common/MessageBox/message' + messageType.image[i] +
'Right.png);');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_RightTrans', 'background-repeat: repeat-y;');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_TopRight', 'border-top-right-radius: 20px;');
+
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
td.MessageBox_Icon_ContentCell', 'padding-top: 10px;');
+ addStyleRule('table.MessageBox' + messageType.name[i] + '
.MessageBox_Body_ContentCell #messageBoxIDContent', 'padding-top: 10px;');
+ }
}
}
diff -r bca89372cadc -r 29d705534d05 web/skins/Default/Openbravo_ERP_250.css
--- a/web/skins/Default/Openbravo_ERP_250.css Thu May 10 17:50:29 2012 +0200
+++ b/web/skins/Default/Openbravo_ERP_250.css Thu May 10 21:06:22 2012 +0200
@@ -3334,11 +3334,13 @@
table.MessageBoxERROR .MessageBox_RightTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxERROR .MessageBox_LeftTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxERROR td.MessageBox_BottomRight {
@@ -3510,11 +3512,13 @@
table.MessageBoxINFO .MessageBox_RightTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxINFO .MessageBox_LeftTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxINFO td.MessageBox_BottomRight {
@@ -3686,11 +3690,13 @@
table.MessageBoxSUCCESS .MessageBox_RightTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxSUCCESS .MessageBox_LeftTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxSUCCESS td.MessageBox_BottomRight {
@@ -3862,11 +3868,13 @@
table.MessageBoxWARNING .MessageBox_RightTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxWARNING .MessageBox_LeftTrans {
width: 9px;
height: 100%;
+ vertical-align: top;
}
table.MessageBoxWARNING td.MessageBox_BottomRight {
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits