aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/js/custom.patch
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2014-06-23 20:08:45 +0000
committerflop25 <flop25@piwigo.org>2014-06-23 20:08:45 +0000
commitba5fcfda0f1cb21d84c1f6d1ca3b92a4502eb014 (patch)
tree9026c9714ba0af12b9e9b8025b3227275c0b4cc8 /plugins/TakeATour/js/custom.patch
parent517761cc8e774ddaa27966a4aa052e2c85c9b919 (diff)
adjustments for 2.7
js updated to 9.0.3 git-svn-id: http://piwigo.org/svn/trunk@28775 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/TakeATour/js/custom.patch')
-rw-r--r--plugins/TakeATour/js/custom.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/TakeATour/js/custom.patch b/plugins/TakeATour/js/custom.patch
new file mode 100644
index 000000000..0ad5f0b5c
--- /dev/null
+++ b/plugins/TakeATour/js/custom.patch
@@ -0,0 +1,43 @@
+--- E:/Program Files/EasyPHP/www/SITE/sandbox/pwg_test/piwigo_trunk/plugins/TakeATour/js/903.js Mon Jun 23 21:44:59 2014
++++ E:/Program Files/EasyPHP/www/SITE/sandbox/pwg_test/piwigo_trunk/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js Sun Apr 13 19:05:42 2014
+@@ -849,9 +849,15 @@
+ return step.path;
+ }
+ }).call(_this);
+- current_path = [document.location.pathname, document.location.hash].join("");
++ current_path = document.location.href;
+ if (_this._isRedirect(path, current_path)) {
++ if (toString.call(path) === "[object RegExp]") {
+ _this._redirect(step, path);
++ }
++ else {
++ path = document.location.protocol+'//'+path;
++ _this._redirect(step, path);
++ }
+ return;
+ }
+ if (_this._isOrphan(step)) {
+@@ -866,6 +872,14 @@
+ }
+ _this._debug("Show the orphan step " + (_this._current + 1) + ". Orphans option is true.");
+ }
++ if (step.title === "" & step.content === "") {
++ if (skipToPrevious) {
++ _this._showPrevStep();
++ } else {
++ _this._showNextStep();
++ }
++ return;
++ }
+ if (step.backdrop) {
+ _this._showBackdrop(!_this._isOrphan(step) ? step.element : void 0);
+ }
+@@ -988,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.replace(/\?.*$/, "").replace(/\/?$/, "") !== currentPath.replace(/\/?$/, "")));
++ 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) {