From 98d5ae91f5a716d415fa3dd639e9819ae7003202 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 8 Sep 2016 09:52:22 +0200 Subject: patch foundation-6.2.3 to work with jquery-3.1 --- Zotlabs/Render/Comanche.php | 4 ++-- library/foundation/js/foundation.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index 91f0ce33a..fdb72c9fb 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -286,7 +286,7 @@ class Comanche { $path = 'library/bootstrap/js/bootstrap.min.js'; break; case 'foundation': - $path = 'library/foundation/js/foundation.min.js'; + $path = 'library/foundation/js/foundation.js'; $init = "\r\n" . ''; break; } @@ -458,4 +458,4 @@ class Comanche { return; } -} \ No newline at end of file +} diff --git a/library/foundation/js/foundation.js b/library/foundation/js/foundation.js index 63b04ace2..8570bdd16 100644 --- a/library/foundation/js/foundation.js +++ b/library/foundation/js/foundation.js @@ -1585,7 +1585,7 @@ * @function * @private */ - $(window).load(function () { + $(window).on('load', function () { checkListeners(); }); @@ -4766,7 +4766,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons // Replacing images if (this.$element[0].nodeName === 'IMG') { - this.$element.attr('src', path).load(function () { + this.$element.attr('src', path).on('load', function () { _this.currentPath = path; }).trigger(trigger); } -- cgit v1.2.3