Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-08-18 13:43:45 +0300
committersgiehl <stefan@piwik.org>2015-10-06 18:25:24 +0300
commit6307be0b45268d744e3d1db80e2087dca538ade5 (patch)
tree069b6d7b46cd22f4107729e96ce28a2bd59ff263 /plugins/Overlay
parent42f9f52f36fc34583c4b3473006e0b1005b8ce90 (diff)
refs #4620 removed some code that was only there for IE8
Diffstat (limited to 'plugins/Overlay')
-rw-r--r--plugins/Overlay/client/client.js56
1 files changed, 1 insertions, 55 deletions
diff --git a/plugins/Overlay/client/client.js b/plugins/Overlay/client/client.js
index 04b1f88f13..75bd19f3b3 100644
--- a/plugins/Overlay/client/client.js
+++ b/plugins/Overlay/client/client.js
@@ -54,10 +54,7 @@ var Piwik_Overlay_Client = (function () {
src: piwikRoot + 'index.php?module=Overlay&action=notifyParentIframe#' + window.location.href
}).css({width: 0, height: 0, border: 0});
- // in some cases, calling append right away doesn't work in IE8
- $(document).ready(function () {
- $('body').append(iframe);
- });
+ $('body').append(iframe);
}
}
@@ -84,50 +81,6 @@ var Piwik_Overlay_Client = (function () {
return el;
}
- /** Special treatment for some internet explorers */
- var ieStatusBarEventsBound = false;
-
- function handleIEStatusBar() {
- if (navigator.appVersion.indexOf("MSIE 7.") == -1
- && navigator.appVersion.indexOf("MSIE 8.") == -1) {
- // this is not IE8 or lower
- return;
- }
-
- // IE7/8 can't handle position:fixed so we need to do it by hand
- statusBar.css({
- position: 'absolute',
- right: 'auto',
- bottom: 'auto',
- left: 0,
- top: 0
- });
-
- var position = function () {
- var scrollY = document.body.parentElement.scrollTop;
- var scrollX = document.body.parentElement.scrollLeft;
- statusBar.css({
- top: (scrollY + $(window).height() - statusBar.outerHeight()) + 'px',
- left: (scrollX + $(window).width() - statusBar.outerWidth()) + 'px'
- });
- };
-
- position();
-
- statusBar.css({width: 'auto'});
- if (statusBar.width() < 350) {
- statusBar.width(350);
- } else {
- statusBar.width(statusBar.width());
- }
-
- if (!ieStatusBarEventsBound) {
- ieStatusBarEventsBound = true;
- $(window).resize(position);
- $(window).scroll(position);
- }
- }
-
return {
/** Initialize in-site analytics */
@@ -225,15 +178,10 @@ var Piwik_Overlay_Client = (function () {
statusBar.show().append(item);
- handleIEStatusBar();
- window.setTimeout(handleIEStatusBar, 100);
-
return function () {
item.remove();
if (statusBar.children().size() == 0) {
statusBar.hide();
- } else {
- handleIEStatusBar();
}
};
},
@@ -243,8 +191,6 @@ var Piwik_Overlay_Client = (function () {
statusBar.find('.PIS_' + className).remove();
if (statusBar.children().size() == 0) {
statusBar.hide();
- } else {
- handleIEStatusBar();
}
},