Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-783: Tour no longer ends when clicking on Prev in the last panel

Mike McGann9cbbe18c3e7e
diff --git a/lib/joyride-2.0.3-1/Gruntfile.js b/lib/joyride-2.0.3-2/Gruntfile.js
similarity index 98%
rename from lib/joyride-2.0.3-1/Gruntfile.js
rename to lib/joyride-2.0.3-2/Gruntfile.js
index 4236d88de..4c9807aeb 100644
--- a/lib/joyride-2.0.3-1/Gruntfile.js
+++ b/lib/joyride-2.0.3-2/Gruntfile.js
@@ -12,7 +12,7 @@
module.exports = function(grunt) {
var name = "joyride";
- var version = "2.0.3-1";
+ var version = "2.0.3-2";
var base = "tour";
var lib = "lib/" + name + "-" + version + "/";
diff --git a/lib/joyride-2.0.3-1/demo-style.css b/lib/joyride-2.0.3-2/demo-style.css
similarity index 100%
rename from lib/joyride-2.0.3-1/demo-style.css
rename to lib/joyride-2.0.3-2/demo-style.css
diff --git a/lib/joyride-2.0.3-1/joyride.css b/lib/joyride-2.0.3-2/joyride.css
similarity index 100%
rename from lib/joyride-2.0.3-1/joyride.css
rename to lib/joyride-2.0.3-2/joyride.css
diff --git a/lib/joyride-2.0.3-1/jquery.cookie.js b/lib/joyride-2.0.3-2/jquery.cookie.js
similarity index 100%
rename from lib/joyride-2.0.3-1/jquery.cookie.js
rename to lib/joyride-2.0.3-2/jquery.cookie.js
diff --git a/lib/joyride-2.0.3-1/jquery.joyride.js b/lib/joyride-2.0.3-2/jquery.joyride.js
similarity index 98%
rename from lib/joyride-2.0.3-1/jquery.joyride.js
rename to lib/joyride-2.0.3-2/jquery.joyride.js
index c755cc350..df696ceef 100644
--- a/lib/joyride-2.0.3-1/jquery.joyride.js
+++ b/lib/joyride-2.0.3-2/jquery.joyride.js
@@ -104,14 +104,14 @@
e.preventDefault();
e.stopImmediatePropagation();
if (settings.$li.next().length < 1) {
- methods.end();
+ methods.end("next");
} else if (settings.timer > 0) {
clearTimeout(settings.automate);
- methods.hide();
+ methods.hide("next");
methods.show();
methods.startTimer();
} else {
- methods.hide();
+ methods.hide("next");
methods.show();
}}
});
@@ -122,7 +122,7 @@
e.preventDefault();
e.stopImmediatePropagation();
if (settings.$li.prev().length < 1) {
- methods.end();
+ methods.end("previous");
} else if (settings.timer > 0) {
clearTimeout(settings.automate);
methods.hideNoCallback();
@@ -130,7 +130,7 @@
methods.startTimer();
} else {
//methods.hideNoCallback();
- methods.hide();
+ methods.hide("previous");
methods.showPrev();
}}
@@ -371,7 +371,7 @@
} else {
- methods.end();
+ methods.end("next");
}
} else {
@@ -474,7 +474,7 @@
} else {
- methods.end();
+ methods.end("previous");
}
} else {
@@ -502,8 +502,8 @@
}
},
- hide : function () {
- settings.postStepCallback(settings.$li.index(), settings.$current_tip);
+ hide : function (button) {
+ settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
$('.joyride-modal-bg').hide();
settings.$current_tip.hide();
},
@@ -597,7 +597,7 @@
},
restart : function () {
- methods.hide();
+ methods.hide("restart");
settings.$li = undefined;
methods.show('init');
},
@@ -875,7 +875,7 @@
startTimer : function () {
if (settings.$li.length) {
settings.automate = setTimeout(function () {
- methods.hide();
+ methods.hide("timer");
methods.show();
methods.startTimer();
}, settings.timer);
@@ -884,7 +884,7 @@
}
},
- end : function () {
+ end : function (button) {
if (settings.cookieMonster) {
$.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });
}
@@ -895,8 +895,8 @@
$('.joyride-modal-bg').hide();
settings.$current_tip.hide();
- settings.postStepCallback(settings.$li.index(), settings.$current_tip);
- settings.postRideCallback(settings.$li.index(), settings.$current_tip);
+ settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
+ settings.postRideCallback(settings.$li.index(), settings.$current_tip, button);
methods.destroy();
},
diff --git a/lib/joyride-2.0.3-1/modernizr.mq.js b/lib/joyride-2.0.3-2/modernizr.mq.js
similarity index 100%
rename from lib/joyride-2.0.3-1/modernizr.mq.js
rename to lib/joyride-2.0.3-2/modernizr.mq.js
diff --git a/src/ext/.htaccess b/src/ext/.htaccess
index 580306eea..aa4902dec 100644
--- a/src/ext/.htaccess
+++ b/src/ext/.htaccess
@@ -1,7 +1,7 @@
ExpiresActive On
-ExpiresDefault A31104000
-Header set Cache-Control "max-age=31104000, publc"
-
+ExpiresDefault A0
+Header set Cache-Control "no-cache, must-revalidate, public"
+Header set Pragma "no-cache"
diff --git a/src/ext/tour/joyride-2.0.3-1/joyride.min.js b/src/ext/tour/joyride-2.0.3-1/joyride.min.js
deleted file mode 100644
index 50993746a..000000000
--- a/src/ext/tour/joyride-2.0.3-1/joyride.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b,c){function d(a){return a}function e(a){return decodeURIComponent(a.replace(f," "))}var f=/\+/g;a.cookie=function(f,g,h){if(g!==c&&!/Object/.test(Object.prototype.toString.call(g))){if(h=a.extend({},a.cookie.defaults,h),null===g&&(h.expires=-1),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=String(g),b.cookie=[encodeURIComponent(f),"=",h.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}h=g||a.cookie.defaults||{};for(var k,l=h.raw?d:e,m=b.cookie.split("; "),n=0;k=m[n]&&m[n].split("=");n++)if(l(k.shift())===f)return l(k.join("="));return null},a.cookie.defaults={},a.removeCookie=function(b,c){return null!==a.cookie(b,c)?(a.cookie(b,null,c),!0):!1}}(jQuery,document),function(a,b,c){"use strict";var d={version:"2.0.3",tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,prevButton:!1,tipAnimation:"fade",pauseAfter:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,tipContainer:"body",postRideCallback:a.noop,postStepCallback:a.noop,bordered:!1,includepage:!1,adjustForPhone:!0,template:{link:'<a href="#close" class="joyride-close-tip">X</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"></div>',nub:'<span class="joyride-nub"></span>',tipborder:'<span class="joyride-nub-border"></span>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="joyride-next-tip"></a>',prevbutton:'<a href="#" class="joyride-prev-tip"></a>'}},e=e||!1,f={},g={init:function(c){return this.each(function(){a.isEmptyObject(f)?(f=a.extend(!0,d,c),f.document=b.document,f.$document=a(f.document),f.$window=a(b),f.$content_el=a(this),f.body_offset=a(f.tipContainer).position(),f.$tip_content=a("> li",f.$content_el),f.paused=!1,f.attempts=0,f.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},g.jquery_check(),a.isFunction(a.cookie)||(f.cookieMonster=!1),f.cookieMonster&&a.cookie(f.cookieName)||(f.$tip_content.each(function(b){g.create({$li:a(this),index:b})}),!f.startTimerOnClick&&f.timer>0?(g.show("init"),g.startTimer()):g.show("init")),f.$document.on("click",".joyride-next-tip, .joyride-modal-bg",function(a){("Next"===a.target.text||"Finish"===a.target.text)&&(a.preventDefault(),a.stopImmediatePropagation(),f.$li.next().length<1?g.end():f.timer>0?(clearTimeout(f.automate),g.hide(),g.show(),g.startTimer()):(g.hide(),g.show()))}),f.$document.on("click.joyride",".joyride-prev-tip, .joyride-modal-bg",function(a){"Prev"===a.target.text&&(a.preventDefault(),a.stopImmediatePropagation(),f.$li.prev().length<1?g.end():f.timer>0?(clearTimeout(f.automate),g.hideNoCallback(),g.showPrev(),g.startTimer()):(g.hide(),g.showPrev()))}),f.$document.on("click.joyride",".joyride-close-tip",function(a){"X"===a.target.text&&(a.preventDefault(),g.endNoCallback())}),f.$window.bind("resize.joyride",function(){g.is_phone()?g.pos_phone():g.pos_default()})):g.restart()})},resume:function(){g.set_li(),g.show()},tip_template:function(b){var c,d,e=(b.li.data("options")||":").split(";"),h=(e.length,f.bordered),i=(f.shiftedArrow,f.includepage);if(b.tip_class=b.tip_class||"",h&&(b.tip_class+=" bordered"),c=a(f.template.tip).addClass(b.tip_class),d=a.trim(a(b.li).html())+g.button_text(b.button_text,b.li)+f.template.link+g.timer_instance(b.index),i){var j=f.$content_el[0].children.length,k=b.index+1,l="<p style='text-align:right'>(page "+k+" of "+j+")</p>";d+=l}return h&&c.append(a(f.template.tipborder)),c.append(a(f.template.nub)),c.append(a(f.template.wrapper)),c.first().attr("data-index",b.index),a(".joyride-content-wrapper",c).append(d),c[0]},timer_instance:function(b){var c;return c=0===b&&f.startTimerOnClick&&f.timer>0||0===f.timer?"":g.outerHTML(a(f.template.timer)[0])},button_text:function(b,d){var e,h,i,j,k,l=(d.data("options")||":").split(";"),m=l.length;for(e=m-1;e>=0;e--)h=l[e].split(":"),2===h.length&&("prevButton"==h[0]&&(i="true"==h[1]?!0:!1),"nextButton"==h[0]&&(j="true"==h[1]?!0:!1));return i===c&&(i=f.prevButton),j===c&&(j=f.nextButton),i?(k="Prev",k=g.outerHTML(a(f.template.prevbutton).append(k)[0])):k="",j?(b=a.trim(b)||"Next",b=g.outerHTML(a(f.template.button).append(b)[0])):b="",k+b+"</br></br>"},create:function(b){var c=b.$li.attr("data-button")||b.$li.attr("data-text"),d=b.$li.attr("class"),e=a(g.tip_template({tip_class:d,index:b.index,button_text:c,li:b.$li}));a(f.tipContainer).append(e)},show:function(b){var d,e,h={},i=[],j=0,k=null;if(f.$li===c||-1===a.inArray(f.$li.index(),f.pauseAfter))if(f.paused?f.paused=!1:g.set_li(b),f.attempts=0,f.$li.length&&f.$target.length>0){for(i=(f.$li.data("options")||":").split(";"),j=i.length,d=j-1;d>=0;d--)e=i[d].split(":"),2===e.length&&(h[a.trim(e[0])]=a.trim(e[1]));f.tipSettings=a.extend({},f,h),f.tipSettings.tipLocationPattern=f.tipLocationPatterns[f.tipSettings.tipLocation],/body/i.test(f.$target.selector)||g.scroll_to(),g.is_phone()?g.pos_phone(!0):g.pos_default(!0),k=a(".joyride-timer-indicator",f.$next_tip),/pop/i.test(f.tipAnimation)?(k.outerWidth(0),f.timer>0?(f.$next_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$next_tip).outerWidth()},f.timer)):f.$next_tip.show()):/fade/i.test(f.tipAnimation)&&(k.outerWidth(0),f.timer>0?(f.$next_tip.fadeIn(f.tipAnimationFadeSpeed),f.$next_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$next_tip).outerWidth()},f.timer)):f.$next_tip.fadeIn(f.tipAnimationFadeSpeed)),f.$current_tip=f.$next_tip}else f.$li&&f.$target.length<1?g.show():g.end();else f.paused=!0},showPrev:function(b){var d,e,h={},i=[],j=0,k=null;if(f.$li===c||-1===a.inArray(f.$li.index(),f.pauseAfter))if(f.paused?f.paused=!1:g.set_li_prev(b),f.attempts=0,f.$li.length&&f.$target.length>0){for(i=(f.$li.data("options")||":").split(";"),j=i.length,d=j-1;d>=0;d--)e=i[d].split(":"),2===e.length&&(h[a.trim(e[0])]=a.trim(e[1]));f.tipSettings=a.extend({},f,h),f.tipSettings.tipLocationPattern=f.tipLocationPatterns[f.tipSettings.tipLocation],/body/i.test(f.$target.selector)||g.scroll_to(),g.is_phone()?g.pos_phone(!0):g.pos_default_prev(!0),k=a(".joyride-timer-indicator",f.$prev_tip),/pop/i.test(f.tipAnimation)?(k.outerWidth(0),f.timer>0?(f.$prev_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$prev_tip).outerWidth()},f.timer)):f.$prev_tip.show()):/fade/i.test(f.tipAnimation)&&(k.outerWidth(0),f.timer>0?(f.$prev_tip.fadeIn(f.tipAnimationFadeSpeed),f.$prev_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$prev_tip).outerWidth()},f.timer)):f.$prev_tip.fadeIn(f.tipAnimationFadeSpeed)),f.$current_tip=f.$prev_tip}else f.$li&&f.$target.length<1?g.showPrev():g.end();else f.paused=!0},is_phone:function(){return f.adjustForPhone?e?e.mq("only screen and (max-width: 767px)"):f.$window.width()<767?!0:!1:!1},hide:function(){f.postStepCallback(f.$li.index(),f.$current_tip),a(".joyride-modal-bg").hide(),f.$current_tip.hide()},hideNoCallback:function(){a(".joyride-modal-bg").hide(),f.$current_tip.hide()},set_li:function(a){a?(f.$li=f.$tip_content.eq(f.startOffset),g.set_next_tip(),f.$current_tip=f.$next_tip):(f.$li=f.$li.next(),g.set_next_tip()),g.set_target()},set_li_prev:function(a){a?(f.$li=f.$tip_content.eq(f.startOffset),g.set_prev_tip(),f.$current_tip=f.$prev_tip):(f.$li=f.$li.prev(),g.set_prev_tip()),g.set_target()},set_next_tip:function(){f.$next_tip=a(".joyride-tip-guide[data-index="+f.$li.index()+"]")},set_prev_tip:function(){f.$prev_tip=a(".joyride-tip-guide[data-index="+f.$li.index()+"]")},set_target:function(){var b=f.$li.attr("data-class"),c=f.$li.attr("data-id"),d=function(){return c?a(f.document.getElementById(c)):b?a("."+b).first():a("body")};f.$target=d()},scroll_to:function(){var b,c;b=f.$window.height()/2,c=Math.ceil(f.$target.offset().top-b+f.$next_tip.outerHeight()),a("html, body").stop().animate({scrollTop:c},f.scrollSpeed)},paused:function(){return-1===a.inArray(f.$li.index()+1,f.pauseAfter)?!0:!1},destroy:function(){f.$document.off(".joyride"),a(b).off(".joyride"),a(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),a(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(f.automate),f={}},restart:function(){g.hide(),f.$li=c,g.show("init")},pos_default:function(b){var c=(Math.ceil(f.$window.height()/2),f.$next_tip.offset(),a(".joyride-nub",f.$next_tip)),d=a(".joyride-nub-border",f.$next_tip),e=Math.ceil(c.outerHeight()/2),h=b||!1;f.$next_tip.removeClass("mobile"),h&&(f.$next_tip.css("visibility","hidden"),f.$next_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(c):(g.bottom()?(f.$next_tip.css({top:f.$target.offset().top+e+f.$target.outerHeight(),left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"top")):g.top()?(f.$next_tip.css({top:f.$target.offset().top-f.$next_tip.outerHeight()-e,left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"bottom")):g.right()?(f.$next_tip.css({top:f.$target.offset().top,left:f.$target.outerWidth()+f.$target.offset().left+20}),g.nub_position(c,d,f.tipSettings.nubPosition,"left")):g.left()&&(f.$next_tip.css({top:f.$target.offset().top,left:f.$target.offset().left-f.$next_tip.outerWidth()-e}),g.nub_position(c,d,f.tipSettings.nubPosition,"right")),!g.visible(g.corners(f.$next_tip))&&f.attempts<f.tipSettings.tipLocationPattern.length&&(c.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.tipSettings.tipLocation=f.tipSettings.tipLocationPattern[f.attempts],f.attempts++,g.pos_default(!0))),h&&(f.$next_tip.hide(),f.$next_tip.css("visibility","visible"))},pos_default_prev:function(b){var c=(Math.ceil(f.$window.height()/2),f.$prev_tip.offset(),a(".joyride-nub",f.$prev_tip)),d=a(".joyride-nub-border",f.$prev_tip),e=Math.ceil(c.outerHeight()/2),h=b||!1;f.$next_tip.addClass("mobile"),h&&(f.$prev_tip.css("visibility","hidden"),f.$prev_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(c):(g.bottom()?(f.$prev_tip.css({top:f.$target.offset().top+e+f.$target.outerHeight(),left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"top")):g.top()?(f.$prev_tip.css({top:f.$target.offset().top-f.$prev_tip.outerHeight()-e,left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"bottom")):g.right()?(f.$prev_tip.css({top:f.$target.offset().top,left:f.$target.outerWidth()+f.$target.offset().left+20}),g.nub_position(c,d,f.tipSettings.nubPosition,"left")):g.left()&&(f.$prev_tip.css({top:f.$target.offset().top,left:f.$target.offset().left-f.$prev_tip.outerWidth()-e}),g.nub_position(c,d,f.tipSettings.nubPosition,"right")),!g.visible(g.corners(f.$prev_tip))&&f.attempts<f.tipSettings.tipLocationPattern.length&&(c.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.tipSettings.tipLocation=f.tipSettings.tipLocationPattern[f.attempts],f.attempts++,g.pos_default_prev(!0))),h&&(f.$prev_tip.hide(),f.$prev_tip.css("visibility","visible"))},pos_phone:function(b){var c=f.$next_tip.outerHeight(),d=(f.$next_tip.offset(),f.$target.outerHeight()),e=a(".joyride-nub",f.$next_tip),h=Math.ceil(e.outerHeight()/2),i=b||!1;e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.$next_tip.addClass("mobile"),i&&(f.$next_tip.css("visibility","hidden"),f.$next_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(e):g.top()?(f.$next_tip.offset({top:f.$target.offset().top-c-h}),e.addClass("bottom")):(f.$next_tip.offset({top:f.$target.offset().top+d+h}),e.addClass("top")),i&&(f.$next_tip.hide(),f.$next_tip.css("visibility","visible"))},pos_modal:function(b){g.center(),b.hide(),a(".joyride-modal-bg").length<1&&a("body").append('<div class="joyride-modal-bg">').show(),/pop/i.test(f.tipAnimation)?a(".joyride-modal-bg").show():a(".joyride-modal-bg").fadeIn(f.tipAnimationFadeSpeed)},center:function(){var a=f.$window;return f.$next_tip.css({top:(a.height()-f.$next_tip.outerHeight())/2+a.scrollTop(),left:(a.width()-f.$next_tip.outerWidth())/2+a.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(f.tipSettings.tipLocation)},top:function(){return/top/i.test(f.tipSettings.tipLocation)},right:function(){return/right/i.test(f.tipSettings.tipLocation)},left:function(){return/left/i.test(f.tipSettings.tipLocation)},corners:function(a){var b=f.$window,c=b.width()+b.scrollLeft(),d=b.height()+b.scrollTop();return[a.offset().top<=b.scrollTop(),c<=a.offset().left+a.outerWidth(),d<=a.offset().top+a.outerHeight(),b.scrollLeft()>=a.offset().left]},visible:function(a){for(var b=a.length;b--;)if(a[b])return!1;return!0},nub_position:function(a,b,c,d){"auto"===c?(a.addClass(d),b.addClass(d)):(a.addClass(c),b.addClass(c))},startTimer:function(){f.$li.length?f.automate=setTimeout(function(){g.hide(),g.show(),g.startTimer()},f.timer):clearTimeout(f.automate)},end:function(){f.cookieMonster&&a.cookie(f.cookieName,"ridden",{expires:365,domain:f.cookieDomain}),f.timer>0&&clearTimeout(f.automate),a(".joyride-modal-bg").hide(),f.$current_tip.hide(),f.postStepCallback(f.$li.index(),f.$current_tip),f.postRideCallback(f.$li.index(),f.$current_tip),g.destroy()},endNoCallback:function(){f.cookieMonster&&a.cookie(f.cookieName,"ridden",{expires:365,domain:f.cookieDomain}),f.timer>0&&clearTimeout(f.automate),a(".joyride-modal-bg").hide(),f.$current_tip.hide(),g.destroy()},jquery_check:function(){return a.isFunction(a.fn.on)?!0:(a.fn.on=function(a,b,c){return this.delegate(b,a,c)},a.fn.off=function(a,b,c){return this.undelegate(b,a,c)},!1)},outerHTML:function(a){return a.outerHTML||(new XMLSerializer).serializeToString(a)},version:function(){return f.version}};a.fn.joyride=function(b){return g[b]?g[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?(a.error("Method "+b+" does not exist on jQuery.joyride"),void 0):g.init.apply(this,arguments)}}(jQuery,this),window.Modernizr=function(a,b,c){function d(a){n.cssText=a}function e(a,b){return typeof a===b}var f,g,h,i="2.6.1",j={},k=b.documentElement,l="modernizr",m=b.createElement(l),n=m.style,o=({}.toString,{}),p=[],q=p.slice,r=function(a,c,d,e){var f,g,h,i=b.createElement("div"),j=b.body,m=j?j:b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:l+(d+1),i.appendChild(h);return f=["&#173;",'<style id="s',l,'">',a,"</style>"].join(""),i.id=l,(j?i:m).innerHTML+=f,m.appendChild(i),j||(m.style.background="",k.appendChild(m)),g=c(i,a),j?i.parentNode.removeChild(i):m.parentNode.removeChild(m),!!g},s=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return r("@media "+b+" { #"+l+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},t={}.hasOwnProperty;h=e(t,"undefined")||e(t.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return t.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=q.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(q.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(q.call(arguments)))};return d});for(var u in o)h(o,u)&&(g=u.toLowerCase(),j[g]=o[u](),p.push((j[g]?"":"no-")+g));return j.addTest=function(a,b){if("object"==typeof a)for(var d in a)h(a,d)&&j.addTest(d,a[d]);else{if(a=a.toLowerCase(),j[a]!==c)return j;b="function"==typeof b?b():b,enableClasses&&(k.className+=" "+(b?"":"no-")+a),j[a]=b}return j},d(""),m=f=null,j._version=i,j.mq=s,j.testStyles=r,j}(this,this.document);
\ No newline at end of file
diff --git a/src/ext/tour/joyride-2.0.3-1/joyride.css b/src/ext/tour/joyride-2.0.3-2/joyride.css
similarity index 100%
rename from src/ext/tour/joyride-2.0.3-1/joyride.css
rename to src/ext/tour/joyride-2.0.3-2/joyride.css
diff --git a/src/ext/tour/joyride-2.0.3-1/joyride.js b/src/ext/tour/joyride-2.0.3-2/joyride.js
similarity index 98%
rename from src/ext/tour/joyride-2.0.3-1/joyride.js
rename to src/ext/tour/joyride-2.0.3-2/joyride.js
index 43e129e1c..bf9a0f187 100644
--- a/src/ext/tour/joyride-2.0.3-1/joyride.js
+++ b/src/ext/tour/joyride-2.0.3-2/joyride.js
@@ -176,14 +176,14 @@
e.preventDefault();
e.stopImmediatePropagation();
if (settings.$li.next().length < 1) {
- methods.end();
+ methods.end("next");
} else if (settings.timer > 0) {
clearTimeout(settings.automate);
- methods.hide();
+ methods.hide("next");
methods.show();
methods.startTimer();
} else {
- methods.hide();
+ methods.hide("next");
methods.show();
}}
});
@@ -194,7 +194,7 @@
e.preventDefault();
e.stopImmediatePropagation();
if (settings.$li.prev().length < 1) {
- methods.end();
+ methods.end("previous");
} else if (settings.timer > 0) {
clearTimeout(settings.automate);
methods.hideNoCallback();
@@ -202,7 +202,7 @@
methods.startTimer();
} else {
//methods.hideNoCallback();
- methods.hide();
+ methods.hide("previous");
methods.showPrev();
}}
@@ -443,7 +443,7 @@
} else {
- methods.end();
+ methods.end("next");
}
} else {
@@ -546,7 +546,7 @@
} else {
- methods.end();
+ methods.end("previous");
}
} else {
@@ -574,8 +574,8 @@
}
},
- hide : function () {
- settings.postStepCallback(settings.$li.index(), settings.$current_tip);
+ hide : function (button) {
+ settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
$('.joyride-modal-bg').hide();
settings.$current_tip.hide();
},
@@ -669,7 +669,7 @@
},
restart : function () {
- methods.hide();
+ methods.hide("restart");
settings.$li = undefined;
methods.show('init');
},
@@ -947,7 +947,7 @@
startTimer : function () {
if (settings.$li.length) {
settings.automate = setTimeout(function () {
- methods.hide();
+ methods.hide("timer");
methods.show();
methods.startTimer();
}, settings.timer);
@@ -956,7 +956,7 @@
}
},
- end : function () {
+ end : function (button) {
if (settings.cookieMonster) {
$.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });
}
@@ -967,8 +967,8 @@
$('.joyride-modal-bg').hide();
settings.$current_tip.hide();
- settings.postStepCallback(settings.$li.index(), settings.$current_tip);
- settings.postRideCallback(settings.$li.index(), settings.$current_tip);
+ settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
+ settings.postRideCallback(settings.$li.index(), settings.$current_tip, button);
methods.destroy();
},
diff --git a/src/ext/tour/joyride-2.0.3-1/joyride.min.css b/src/ext/tour/joyride-2.0.3-2/joyride.min.css
similarity index 100%
rename from src/ext/tour/joyride-2.0.3-1/joyride.min.css
rename to src/ext/tour/joyride-2.0.3-2/joyride.min.css
diff --git a/src/ext/tour/joyride-2.0.3-2/joyride.min.js b/src/ext/tour/joyride-2.0.3-2/joyride.min.js
new file mode 100644
index 000000000..749cd2745
--- /dev/null
+++ b/src/ext/tour/joyride-2.0.3-2/joyride.min.js
@@ -0,0 +1 @@
+!function(a,b,c){function d(a){return a}function e(a){return decodeURIComponent(a.replace(f," "))}var f=/\+/g;a.cookie=function(f,g,h){if(g!==c&&!/Object/.test(Object.prototype.toString.call(g))){if(h=a.extend({},a.cookie.defaults,h),null===g&&(h.expires=-1),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=String(g),b.cookie=[encodeURIComponent(f),"=",h.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}h=g||a.cookie.defaults||{};for(var k,l=h.raw?d:e,m=b.cookie.split("; "),n=0;k=m[n]&&m[n].split("=");n++)if(l(k.shift())===f)return l(k.join("="));return null},a.cookie.defaults={},a.removeCookie=function(b,c){return null!==a.cookie(b,c)?(a.cookie(b,null,c),!0):!1}}(jQuery,document),function(a,b,c){"use strict";var d={version:"2.0.3",tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,prevButton:!1,tipAnimation:"fade",pauseAfter:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,tipContainer:"body",postRideCallback:a.noop,postStepCallback:a.noop,bordered:!1,includepage:!1,adjustForPhone:!0,template:{link:'<a href="#close" class="joyride-close-tip">X</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"></div>',nub:'<span class="joyride-nub"></span>',tipborder:'<span class="joyride-nub-border"></span>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="joyride-next-tip"></a>',prevbutton:'<a href="#" class="joyride-prev-tip"></a>'}},e=e||!1,f={},g={init:function(c){return this.each(function(){a.isEmptyObject(f)?(f=a.extend(!0,d,c),f.document=b.document,f.$document=a(f.document),f.$window=a(b),f.$content_el=a(this),f.body_offset=a(f.tipContainer).position(),f.$tip_content=a("> li",f.$content_el),f.paused=!1,f.attempts=0,f.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},g.jquery_check(),a.isFunction(a.cookie)||(f.cookieMonster=!1),f.cookieMonster&&a.cookie(f.cookieName)||(f.$tip_content.each(function(b){g.create({$li:a(this),index:b})}),!f.startTimerOnClick&&f.timer>0?(g.show("init"),g.startTimer()):g.show("init")),f.$document.on("click",".joyride-next-tip, .joyride-modal-bg",function(a){("Next"===a.target.text||"Finish"===a.target.text)&&(a.preventDefault(),a.stopImmediatePropagation(),f.$li.next().length<1?g.end("next"):f.timer>0?(clearTimeout(f.automate),g.hide("next"),g.show(),g.startTimer()):(g.hide("next"),g.show()))}),f.$document.on("click.joyride",".joyride-prev-tip, .joyride-modal-bg",function(a){"Prev"===a.target.text&&(a.preventDefault(),a.stopImmediatePropagation(),f.$li.prev().length<1?g.end("previous"):f.timer>0?(clearTimeout(f.automate),g.hideNoCallback(),g.showPrev(),g.startTimer()):(g.hide("previous"),g.showPrev()))}),f.$document.on("click.joyride",".joyride-close-tip",function(a){"X"===a.target.text&&(a.preventDefault(),g.endNoCallback())}),f.$window.bind("resize.joyride",function(){g.is_phone()?g.pos_phone():g.pos_default()})):g.restart()})},resume:function(){g.set_li(),g.show()},tip_template:function(b){var c,d,e=(b.li.data("options")||":").split(";"),h=(e.length,f.bordered),i=(f.shiftedArrow,f.includepage);if(b.tip_class=b.tip_class||"",h&&(b.tip_class+=" bordered"),c=a(f.template.tip).addClass(b.tip_class),d=a.trim(a(b.li).html())+g.button_text(b.button_text,b.li)+f.template.link+g.timer_instance(b.index),i){var j=f.$content_el[0].children.length,k=b.index+1,l="<p style='text-align:right'>(page "+k+" of "+j+")</p>";d+=l}return h&&c.append(a(f.template.tipborder)),c.append(a(f.template.nub)),c.append(a(f.template.wrapper)),c.first().attr("data-index",b.index),a(".joyride-content-wrapper",c).append(d),c[0]},timer_instance:function(b){var c;return c=0===b&&f.startTimerOnClick&&f.timer>0||0===f.timer?"":g.outerHTML(a(f.template.timer)[0])},button_text:function(b,d){var e,h,i,j,k,l=(d.data("options")||":").split(";"),m=l.length;for(e=m-1;e>=0;e--)h=l[e].split(":"),2===h.length&&("prevButton"==h[0]&&(i="true"==h[1]?!0:!1),"nextButton"==h[0]&&(j="true"==h[1]?!0:!1));return i===c&&(i=f.prevButton),j===c&&(j=f.nextButton),i?(k="Prev",k=g.outerHTML(a(f.template.prevbutton).append(k)[0])):k="",j?(b=a.trim(b)||"Next",b=g.outerHTML(a(f.template.button).append(b)[0])):b="",k+b+"</br></br>"},create:function(b){var c=b.$li.attr("data-button")||b.$li.attr("data-text"),d=b.$li.attr("class"),e=a(g.tip_template({tip_class:d,index:b.index,button_text:c,li:b.$li}));a(f.tipContainer).append(e)},show:function(b){var d,e,h={},i=[],j=0,k=null;if(f.$li===c||-1===a.inArray(f.$li.index(),f.pauseAfter))if(f.paused?f.paused=!1:g.set_li(b),f.attempts=0,f.$li.length&&f.$target.length>0){for(i=(f.$li.data("options")||":").split(";"),j=i.length,d=j-1;d>=0;d--)e=i[d].split(":"),2===e.length&&(h[a.trim(e[0])]=a.trim(e[1]));f.tipSettings=a.extend({},f,h),f.tipSettings.tipLocationPattern=f.tipLocationPatterns[f.tipSettings.tipLocation],/body/i.test(f.$target.selector)||g.scroll_to(),g.is_phone()?g.pos_phone(!0):g.pos_default(!0),k=a(".joyride-timer-indicator",f.$next_tip),/pop/i.test(f.tipAnimation)?(k.outerWidth(0),f.timer>0?(f.$next_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$next_tip).outerWidth()},f.timer)):f.$next_tip.show()):/fade/i.test(f.tipAnimation)&&(k.outerWidth(0),f.timer>0?(f.$next_tip.fadeIn(f.tipAnimationFadeSpeed),f.$next_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$next_tip).outerWidth()},f.timer)):f.$next_tip.fadeIn(f.tipAnimationFadeSpeed)),f.$current_tip=f.$next_tip}else f.$li&&f.$target.length<1?g.show():g.end("next");else f.paused=!0},showPrev:function(b){var d,e,h={},i=[],j=0,k=null;if(f.$li===c||-1===a.inArray(f.$li.index(),f.pauseAfter))if(f.paused?f.paused=!1:g.set_li_prev(b),f.attempts=0,f.$li.length&&f.$target.length>0){for(i=(f.$li.data("options")||":").split(";"),j=i.length,d=j-1;d>=0;d--)e=i[d].split(":"),2===e.length&&(h[a.trim(e[0])]=a.trim(e[1]));f.tipSettings=a.extend({},f,h),f.tipSettings.tipLocationPattern=f.tipLocationPatterns[f.tipSettings.tipLocation],/body/i.test(f.$target.selector)||g.scroll_to(),g.is_phone()?g.pos_phone(!0):g.pos_default_prev(!0),k=a(".joyride-timer-indicator",f.$prev_tip),/pop/i.test(f.tipAnimation)?(k.outerWidth(0),f.timer>0?(f.$prev_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$prev_tip).outerWidth()},f.timer)):f.$prev_tip.show()):/fade/i.test(f.tipAnimation)&&(k.outerWidth(0),f.timer>0?(f.$prev_tip.fadeIn(f.tipAnimationFadeSpeed),f.$prev_tip.show(),k.animate({width:a(".joyride-timer-indicator-wrap",f.$prev_tip).outerWidth()},f.timer)):f.$prev_tip.fadeIn(f.tipAnimationFadeSpeed)),f.$current_tip=f.$prev_tip}else f.$li&&f.$target.length<1?g.showPrev():g.end("previous");else f.paused=!0},is_phone:function(){return f.adjustForPhone?e?e.mq("only screen and (max-width: 767px)"):f.$window.width()<767?!0:!1:!1},hide:function(b){f.postStepCallback(f.$li.index(),f.$current_tip,b),a(".joyride-modal-bg").hide(),f.$current_tip.hide()},hideNoCallback:function(){a(".joyride-modal-bg").hide(),f.$current_tip.hide()},set_li:function(a){a?(f.$li=f.$tip_content.eq(f.startOffset),g.set_next_tip(),f.$current_tip=f.$next_tip):(f.$li=f.$li.next(),g.set_next_tip()),g.set_target()},set_li_prev:function(a){a?(f.$li=f.$tip_content.eq(f.startOffset),g.set_prev_tip(),f.$current_tip=f.$prev_tip):(f.$li=f.$li.prev(),g.set_prev_tip()),g.set_target()},set_next_tip:function(){f.$next_tip=a(".joyride-tip-guide[data-index="+f.$li.index()+"]")},set_prev_tip:function(){f.$prev_tip=a(".joyride-tip-guide[data-index="+f.$li.index()+"]")},set_target:function(){var b=f.$li.attr("data-class"),c=f.$li.attr("data-id"),d=function(){return c?a(f.document.getElementById(c)):b?a("."+b).first():a("body")};f.$target=d()},scroll_to:function(){var b,c;b=f.$window.height()/2,c=Math.ceil(f.$target.offset().top-b+f.$next_tip.outerHeight()),a("html, body").stop().animate({scrollTop:c},f.scrollSpeed)},paused:function(){return-1===a.inArray(f.$li.index()+1,f.pauseAfter)?!0:!1},destroy:function(){f.$document.off(".joyride"),a(b).off(".joyride"),a(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),a(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(f.automate),f={}},restart:function(){g.hide("restart"),f.$li=c,g.show("init")},pos_default:function(b){var c=(Math.ceil(f.$window.height()/2),f.$next_tip.offset(),a(".joyride-nub",f.$next_tip)),d=a(".joyride-nub-border",f.$next_tip),e=Math.ceil(c.outerHeight()/2),h=b||!1;f.$next_tip.removeClass("mobile"),h&&(f.$next_tip.css("visibility","hidden"),f.$next_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(c):(g.bottom()?(f.$next_tip.css({top:f.$target.offset().top+e+f.$target.outerHeight(),left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"top")):g.top()?(f.$next_tip.css({top:f.$target.offset().top-f.$next_tip.outerHeight()-e,left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"bottom")):g.right()?(f.$next_tip.css({top:f.$target.offset().top,left:f.$target.outerWidth()+f.$target.offset().left+20}),g.nub_position(c,d,f.tipSettings.nubPosition,"left")):g.left()&&(f.$next_tip.css({top:f.$target.offset().top,left:f.$target.offset().left-f.$next_tip.outerWidth()-e}),g.nub_position(c,d,f.tipSettings.nubPosition,"right")),!g.visible(g.corners(f.$next_tip))&&f.attempts<f.tipSettings.tipLocationPattern.length&&(c.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.tipSettings.tipLocation=f.tipSettings.tipLocationPattern[f.attempts],f.attempts++,g.pos_default(!0))),h&&(f.$next_tip.hide(),f.$next_tip.css("visibility","visible"))},pos_default_prev:function(b){var c=(Math.ceil(f.$window.height()/2),f.$prev_tip.offset(),a(".joyride-nub",f.$prev_tip)),d=a(".joyride-nub-border",f.$prev_tip),e=Math.ceil(c.outerHeight()/2),h=b||!1;f.$next_tip.addClass("mobile"),h&&(f.$prev_tip.css("visibility","hidden"),f.$prev_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(c):(g.bottom()?(f.$prev_tip.css({top:f.$target.offset().top+e+f.$target.outerHeight(),left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"top")):g.top()?(f.$prev_tip.css({top:f.$target.offset().top-f.$prev_tip.outerHeight()-e,left:f.$target.offset().left}),g.nub_position(c,d,f.tipSettings.nubPosition,"bottom")):g.right()?(f.$prev_tip.css({top:f.$target.offset().top,left:f.$target.outerWidth()+f.$target.offset().left+20}),g.nub_position(c,d,f.tipSettings.nubPosition,"left")):g.left()&&(f.$prev_tip.css({top:f.$target.offset().top,left:f.$target.offset().left-f.$prev_tip.outerWidth()-e}),g.nub_position(c,d,f.tipSettings.nubPosition,"right")),!g.visible(g.corners(f.$prev_tip))&&f.attempts<f.tipSettings.tipLocationPattern.length&&(c.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.tipSettings.tipLocation=f.tipSettings.tipLocationPattern[f.attempts],f.attempts++,g.pos_default_prev(!0))),h&&(f.$prev_tip.hide(),f.$prev_tip.css("visibility","visible"))},pos_phone:function(b){var c=f.$next_tip.outerHeight(),d=(f.$next_tip.offset(),f.$target.outerHeight()),e=a(".joyride-nub",f.$next_tip),h=Math.ceil(e.outerHeight()/2),i=b||!1;e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),f.$next_tip.addClass("mobile"),i&&(f.$next_tip.css("visibility","hidden"),f.$next_tip.show()),/body/i.test(f.$target.selector)?f.$li.length&&g.pos_modal(e):g.top()?(f.$next_tip.offset({top:f.$target.offset().top-c-h}),e.addClass("bottom")):(f.$next_tip.offset({top:f.$target.offset().top+d+h}),e.addClass("top")),i&&(f.$next_tip.hide(),f.$next_tip.css("visibility","visible"))},pos_modal:function(b){g.center(),b.hide(),a(".joyride-modal-bg").length<1&&a("body").append('<div class="joyride-modal-bg">').show(),/pop/i.test(f.tipAnimation)?a(".joyride-modal-bg").show():a(".joyride-modal-bg").fadeIn(f.tipAnimationFadeSpeed)},center:function(){var a=f.$window;return f.$next_tip.css({top:(a.height()-f.$next_tip.outerHeight())/2+a.scrollTop(),left:(a.width()-f.$next_tip.outerWidth())/2+a.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(f.tipSettings.tipLocation)},top:function(){return/top/i.test(f.tipSettings.tipLocation)},right:function(){return/right/i.test(f.tipSettings.tipLocation)},left:function(){return/left/i.test(f.tipSettings.tipLocation)},corners:function(a){var b=f.$window,c=b.width()+b.scrollLeft(),d=b.height()+b.scrollTop();return[a.offset().top<=b.scrollTop(),c<=a.offset().left+a.outerWidth(),d<=a.offset().top+a.outerHeight(),b.scrollLeft()>=a.offset().left]},visible:function(a){for(var b=a.length;b--;)if(a[b])return!1;return!0},nub_position:function(a,b,c,d){"auto"===c?(a.addClass(d),b.addClass(d)):(a.addClass(c),b.addClass(c))},startTimer:function(){f.$li.length?f.automate=setTimeout(function(){g.hide("timer"),g.show(),g.startTimer()},f.timer):clearTimeout(f.automate)},end:function(b){f.cookieMonster&&a.cookie(f.cookieName,"ridden",{expires:365,domain:f.cookieDomain}),f.timer>0&&clearTimeout(f.automate),a(".joyride-modal-bg").hide(),f.$current_tip.hide(),f.postStepCallback(f.$li.index(),f.$current_tip,b),f.postRideCallback(f.$li.index(),f.$current_tip,b),g.destroy()},endNoCallback:function(){f.cookieMonster&&a.cookie(f.cookieName,"ridden",{expires:365,domain:f.cookieDomain}),f.timer>0&&clearTimeout(f.automate),a(".joyride-modal-bg").hide(),f.$current_tip.hide(),g.destroy()},jquery_check:function(){return a.isFunction(a.fn.on)?!0:(a.fn.on=function(a,b,c){return this.delegate(b,a,c)},a.fn.off=function(a,b,c){return this.undelegate(b,a,c)},!1)},outerHTML:function(a){return a.outerHTML||(new XMLSerializer).serializeToString(a)},version:function(){return f.version}};a.fn.joyride=function(b){return g[b]?g[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?(a.error("Method "+b+" does not exist on jQuery.joyride"),void 0):g.init.apply(this,arguments)}}(jQuery,this),window.Modernizr=function(a,b,c){function d(a){n.cssText=a}function e(a,b){return typeof a===b}var f,g,h,i="2.6.1",j={},k=b.documentElement,l="modernizr",m=b.createElement(l),n=m.style,o=({}.toString,{}),p=[],q=p.slice,r=function(a,c,d,e){var f,g,h,i=b.createElement("div"),j=b.body,m=j?j:b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:l+(d+1),i.appendChild(h);return f=["&#173;",'<style id="s',l,'">',a,"</style>"].join(""),i.id=l,(j?i:m).innerHTML+=f,m.appendChild(i),j||(m.style.background="",k.appendChild(m)),g=c(i,a),j?i.parentNode.removeChild(i):m.parentNode.removeChild(m),!!g},s=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return r("@media "+b+" { #"+l+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},t={}.hasOwnProperty;h=e(t,"undefined")||e(t.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return t.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=q.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(q.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(q.call(arguments)))};return d});for(var u in o)h(o,u)&&(g=u.toLowerCase(),j[g]=o[u](),p.push((j[g]?"":"no-")+g));return j.addTest=function(a,b){if("object"==typeof a)for(var d in a)h(a,d)&&j.addTest(d,a[d]);else{if(a=a.toLowerCase(),j[a]!==c)return j;b="function"==typeof b?b():b,enableClasses&&(k.className+=" "+(b?"":"no-")+a),j[a]=b}return j},d(""),m=f=null,j._version=i,j.mq=s,j.testStyles=r,j}(this,this.document);
\ No newline at end of file
diff --git a/src/index.html b/src/index.html
index c98a210c6..ae8ad02bb 100644
--- a/src/index.html
+++ b/src/index.html
@@ -38,8 +38,8 @@
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/palettes/jquery.dd-3.3/jquery.dd.css">
<!-- link.prod --> <!-- <link type="text/css" rel="Stylesheet" href="ext/palettes/jquery.dd-3.3/jquery.dd.min.css"> -->
- <!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/tour/joyride-2.0.3-1/joyride.css">
- <!-- link.prod --> <!-- <link type="text/css" rel="Stylesheet" href="ext/tour/joyride-2.0.3-1/joyride.min.css"> -->
+ <!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/tour/joyride-2.0.3-2/joyride.css">
+ <!-- link.prod --> <!-- <link type="text/css" rel="Stylesheet" href="ext/tour/joyride-2.0.3-2/joyride.min.css"> -->
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/image/jcrop-0.9.10-p1/jcrop.css">
<!-- link.prod --> <!-- <link type="text/css" rel="Stylesheet" href="ext/image/jcrop-0.9.10-p1/jcrop.min.css"> -->
@@ -100,8 +100,8 @@
<!-- link.dev --> <script type="text/javascript" src="ext/palettes/jquery.dd-3.3/jquery.dd.js"></script>
<!-- link.prod --> <!-- <script type="text/javascript" src="ext/palettes/jquery.dd-3.3/jquery.dd.min.js"></script> -->
- <!-- link.dev --> <script type="text/javascript" src="ext/tour/joyride-2.0.3-1/joyride.js"></script>
- <!-- link.prod --> <!-- <script type="text/javascript" src="ext/tour/joyride-2.0.3-1/joyride.min.js"></script> -->
+ <!-- link.dev --> <script type="text/javascript" src="ext/tour/joyride-2.0.3-2/joyride.js"></script>
+ <!-- link.prod --> <!-- <script type="text/javascript" src="ext/tour/joyride-2.0.3-2/joyride.min.js"></script> -->
<!-- link.dev --> <script type="text/javascript" src="ext/proj/proj4js-1.1.0-1/proj4js.js"></script>
<!-- link.prod --> <!-- <script type="text/javascript" src="ext/proj/proj4js-1.1.0-1/proj4js.min.js"></script> -->
diff --git a/src/js/wv.tour.js b/src/js/wv.tour.js
index f86886874..4fe02119f 100644
--- a/src/js/wv.tour.js
+++ b/src/js/wv.tour.js
@@ -280,9 +280,10 @@ wv.tour = wv.tour || function(models, ui) {
splashOverlay.hide();
};
- var onStop = function(index, tip) {
+ var onStop = function(index, tip, button) {
+ console.log(index, tip, button);
setTourState();
- if(index == 4) {
+ if(index == 4 && button !== "previous") {
conclusionPanel.show();
conclusionPanel.center();
}