details: https://code.openbravo.com/erp/devel/pi/rev/3b668ff72c0c
changeset: 16454:3b668ff72c0c
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Wed May 09 00:19:50 2012 +0200
summary: Related to issue 20207: Variable name specification
diffstat:
web/js/genericTree.js | 2 +-
web/js/utils.js | 36 ++++++++++++++++++------------------
2 files changed, 19 insertions(+), 19 deletions(-)
diffs (140 lines):
diff -r 7b77a49f3024 -r 3b668ff72c0c web/js/genericTree.js
--- a/web/js/genericTree.js Tue May 08 23:16:09 2012 +0200
+++ b/web/js/genericTree.js Wed May 09 00:19:50 2012 +0200
@@ -421,7 +421,7 @@
if (typeof node != "undefined") {
var nodeId = node.getAttribute('id').replace('node_','');
if (document.getElementById('inpNodes_' + nodeId)) {
- if (isClick == true &&
navigator.userAgent.toUpperCase().indexOf("MSIE") != -1 && !isIE8Strict) {
+ if (isClick == true &&
navigator.userAgent.toUpperCase().indexOf("MSIE") != -1 && !isIE9Strict) {
gt_setActiveUninstall('buttonUninstall');
gt_setActiveUninstall('buttonDisable');
} else if (isClick == true) {
diff -r 7b77a49f3024 -r 3b668ff72c0c web/js/utils.js
--- a/web/js/utils.js Tue May 08 23:16:09 2012 +0200
+++ b/web/js/utils.js Wed May 09 00:19:50 2012 +0200
@@ -33,12 +33,12 @@
if (isWindowInMDIPage) {
adaptSkinToMDIEnvironment();
}
- if (navigator.userAgent.toUpperCase().indexOf("MSIE") !== -1 &&
getBrowserInfo('documentMode') >= 8) {
- isIE8Strict = true;
- }
-}
-
-var isIE8Strict = false;
+ if (navigator.userAgent.toUpperCase().indexOf("MSIE") !== -1 &&
getBrowserInfo('documentMode') >= 9 && parseInt(getBrowserInfo('majorVersion'),
10) >= 9) {
+ isIE9Strict = true;
+ }
+}
+
+var isIE9Strict = false;
var isWindowInMDIPopup = false;
var isWindowInMDITab = false;
var isWindowInMDIPage = false;
@@ -213,7 +213,7 @@
function getObjAttribute(obj, attribute) {
attribute = attribute.toLowerCase();
var attribute_text = "";
- if (navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 || isIE8Strict) {
+ if (navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 || isIE9Strict) {
attribute_text = obj.getAttribute(attribute);
} else {
attribute_text = obj.getAttribute(attribute).toString();
@@ -231,7 +231,7 @@
attribute = attribute.toLowerCase();
attribute_text = attribute_text.toString();
attribute_text = attribute_text.replace(/^(\s|\ )*|(\s|\ )*$/g,"");
- if (navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 || isIE8Strict) {
+ if (navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 || isIE9Strict) {
obj.setAttribute(attribute, attribute_text);
} else {
obj[attribute]=new Function(attribute_text);
@@ -246,7 +246,7 @@
function getElementsByName(name, tag) {
var resultArray = [];
if (!tag || tag == "" || tag == null || typeof tag == "undefined") {
- if (navigator.userAgent.toUpperCase().indexOf("MSIE") != -1 &&
!isIE8Strict) {
+ if (navigator.userAgent.toUpperCase().indexOf("MSIE") != -1 &&
!isIE9Strict) {
var inputs = document.all;
for (var i=0; i<inputs.length; i++){
if (inputs.item(i).getAttribute('name') == name){
@@ -276,13 +276,13 @@
*/
function getElementsByClassName(className, tag) {
var resultArray = [], classAttributeName;
- if (navigator.userAgent.toUpperCase().indexOf('MSIE') !== -1 &&
!isIE8Strict) {
+ if (navigator.userAgent.toUpperCase().indexOf('MSIE') !== -1 &&
!isIE9Strict) {
classAttributeName = 'className';
} else {
classAttributeName = 'class';
}
if (!tag) {
- if (navigator.userAgent.toUpperCase().indexOf('MSIE') !== -1 &&
!isIE8Strict) {
+ if (navigator.userAgent.toUpperCase().indexOf('MSIE') !== -1 &&
!isIE9Strict) {
var inputs = document.all;
for (var i=0; i<inputs.length; i++) {
if (inputs.item(i).getAttribute(classAttributeName) === className){
@@ -4460,7 +4460,7 @@
var mbottom = document.getElementById("tdbottomSeparator");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -4496,7 +4496,7 @@
var mTopNavigation = document.getElementById("tdNavigation");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -4527,7 +4527,7 @@
var mTopNavigation = document.getElementById("tdNavigation");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -4557,7 +4557,7 @@
var client_bottom = document.getElementById("client_bottom");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -4595,7 +4595,7 @@
var client_bottom = document.getElementById("client_bottom");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -4643,7 +4643,7 @@
var table_header = document.getElementById("table_header");
var body = document.getElementsByTagName("BODY");
var h, w;
- if (isIE8Strict) {
+ if (isIE9Strict) {
h = window.innerHeight;
w = window.innerWidth;
} else {
@@ -5703,7 +5703,7 @@
}
function fixIE9WindowBorders() {
- if (isIE8Strict) {
+ if (isIE9Strict) {
var leftContentPane = getElementsByClassName('Main_ContentPane_Left',
'table');
if (leftContentPane[0]) {
leftContentPane = leftContentPane[0];
------------------------------------------------------------------------------
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