# HG changeset patch # User veltr # Date 1380639477 -7200 # Node ID e1752b696a079343cac7d52b981a6d44821008ca # Parent 63c5e5b16770867d553f3cd77e7817fd06c5d851 jQuery 1.10 compatibility diff -r 63c5e5b16770 -r e1752b696a07 src/js/init.js --- a/src/js/init.js Tue Oct 01 16:38:11 2013 +0200 +++ b/src/js/init.js Tue Oct 01 16:57:57 2013 +0200 @@ -2,12 +2,16 @@ if (typeof window.IriSP === "undefined") { window.IriSP = { - VERSION: "0.3.1" + VERSION: "0.3.2" }; } -if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) { - IriSP.jQuery = window.jQuery; +if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined") { + var jvp = window.jQuery().jquery.split("."), + jv = 100 * parseInt(jvp[0]) + parseInt(jvp[1]); + if (jv > 170) { + IriSP.jQuery = window.jQuery; + } } if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) {