aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-02-10 13:52:47 +0000
committerplegall <plg@piwigo.org>2015-02-10 13:52:47 +0000
commit11f530c514323b3d4e1912147aced7d736c11292 (patch)
treefa7b0ab70997dd3e6affc664df225a5b3c477c9f
parent48354d14aa740a2b8a51b66dc254670fd5e51554 (diff)
bug 3198: replace (toString.call by {}.toString.call to make it work with IE (all versions)
git-svn-id: http://piwigo.org/svn/branches/2.7@30942 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--plugins/TakeATour/js/custom-bootstrap-tour-standalone.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js
index 70a155a53..28308b832 100644
--- a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js
+++ b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js
@@ -851,7 +851,7 @@
}).call(_this);
current_path = document.location.href;
if (_this._isRedirect(path, current_path)) {
- if (toString.call(path) === "[object RegExp]") {
+ if ({}.toString.call(path) === "[object RegExp]") {
_this._redirect(step, path);
}
else {
@@ -1002,7 +1002,7 @@
};
Tour.prototype._isRedirect = function(path, currentPath) {
- return (path != null) && path !== "" && ((toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || (toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
+ return (path != null) && path !== "" && (({}.toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || ({}.toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
};
Tour.prototype._redirect = function(step, path) {