From: Lonewolf Date: Wed, 19 Mar 2014 13:40:47 +0000 (+0530) Subject: Enable clicks inside offcanvas X-Git-Tag: v5.2.2~106^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4728%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Enable clicks inside offcanvas --- diff --git a/js/foundation/foundation.offcanvas.js b/js/foundation/foundation.offcanvas.js index 141bd02cd..c17fc495b 100644 --- a/js/foundation/foundation.offcanvas.js +++ b/js/foundation/foundation.offcanvas.js @@ -21,13 +21,13 @@ self.click_toggle_class(e, 'move-right'); }) .on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) { - self.click_remove_class(e, 'move-right'); + S(".off-canvas-wrap").removeClass("move-right"); }) .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) { self.click_toggle_class(e, 'move-left'); }) .on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) { - self.click_remove_class(e, 'move-left'); + S(".off-canvas-wrap").removeClass("move-left"); }) .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) { self.click_remove_class(e, 'move-left');