From: Zuriel Andrusyshyn Date: Sun, 15 Dec 2013 22:44:13 +0000 (-0500) Subject: Update foundation.topbar.js X-Git-Tag: 5.0.3~71^2~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3894%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update foundation.topbar.js On Single Page Apps, (Angular, etc) using # returns the application to the index page. Suggest replacing # with javascript:void(0) --- diff --git a/js/foundation/foundation.topbar.js b/js/foundation/foundation.topbar.js index 170892fc9..fb9b8960e 100644 --- a/js/foundation/foundation.topbar.js +++ b/js/foundation/foundation.topbar.js @@ -303,9 +303,9 @@ url = $link.attr('href'); if (settings.mobile_show_parent_link && url && url.length > 1) { - var $titleLi = $('
  • ' + $link.text() +'
  • '); + var $titleLi = $('
  • ' + $link.text() +'
  • '); } else { - var $titleLi = $('
  • '); + var $titleLi = $('
  • '); } // Copy link to subnav