| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2009, Google Inc. | 2 Copyright 2009, Google Inc. |
| 3 All rights reserved. | 3 All rights reserved. |
| 4 | 4 |
| 5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
| 6 modification, are permitted provided that the following conditions are | 6 modification, are permitted provided that the following conditions are |
| 7 met: | 7 met: |
| 8 | 8 |
| 9 * Redistributions of source code must retain the above copyright | 9 * Redistributions of source code must retain the above copyright |
| 10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 function changeOverlayZIndex() { | 64 function changeOverlayZIndex() { |
| 65 // This is a little hack to fix the overlay covering up <object> tags. | 65 // This is a little hack to fix the overlay covering up <object> tags. |
| 66 // TODO: clean this up. Did this because it was fast hack | 66 // TODO: clean this up. Did this because it was fast hack |
| 67 var lastZ = parent.iframeZindex; | 67 var lastZ = parent.iframeZindex; |
| 68 var newZ; | 68 var newZ; |
| 69 if (typeof lastZ != 'undefined') { | 69 if (typeof lastZ != 'undefined') { |
| 70 newZ = parseInt(lastZ) - 1; | 70 newZ = parseInt(lastZ) - 1; |
| 71 | |
| 72 } else { | 71 } else { |
| 73 newZ = 4999; | 72 newZ = 4999; |
| 74 } | 73 } |
| 75 | 74 |
| 76 parent.iframeZindex = newZ; | 75 parent.iframeZindex = newZ; |
| 77 | 76 |
| 78 var overlay = parent.document.getElementById('overlay'); | 77 var overlay = parent.document.getElementById('overlay'); |
| 79 overlay.style.zIndex = newZ; | 78 overlay.style.zIndex = newZ; |
| 80 } | 79 } |
| 81 | 80 |
| 82 function load() { | 81 function load() { |
| 83 var first = document.getElementsByTagName('body')[0].childNodes[0]; | 82 var first = document.getElementsByTagName('body')[0].childNodes[0]; |
| 84 for (var i=0; i < errors.length; i++) { | 83 for (var i=0; i < errors.length; i++) { |
| 85 document.body.insertBefore(errors[i], first); | 84 document.body.insertBefore(errors[i], first); |
| 86 } | 85 } |
| 87 | 86 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 var first = document.getElementsByTagName('body')[0]; | 123 var first = document.getElementsByTagName('body')[0]; |
| 125 if (first && first.childNodes) { | 124 if (first && first.childNodes) { |
| 126 first = first.childNodes[0]; | 125 first = first.childNodes[0]; |
| 127 document.body.insertBefore(errorDiv, first); | 126 document.body.insertBefore(errorDiv, first); |
| 128 } else { | 127 } else { |
| 129 errors.push(errorDiv); | 128 errors.push(errorDiv); |
| 130 } | 129 } |
| 131 }; | 130 }; |
| 132 | 131 |
| 133 </script> | 132 </script> |
| OLD | NEW |