X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fmehrpadin%2Fsuperfish%2Fsftouchscreen.js;h=8364cf4199f6bb7a5c3154f6e8c83a3a6252fd89;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=5fb46ae740f4409de3085be70fe212f59c56cc53;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/mehrpadin/superfish/sftouchscreen.js b/vendor/mehrpadin/superfish/sftouchscreen.js index 5fb46ae74..8364cf419 100644 --- a/vendor/mehrpadin/superfish/sftouchscreen.js +++ b/vendor/mehrpadin/superfish/sftouchscreen.js @@ -51,7 +51,10 @@ if (item.hasClass('sf-clicked')){ // Depending on the preferred behaviour, either proceed to the URL. if (options.behaviour == 0){ - window.location = item.attr('href'); + url = item.attr('href'); + if (typeof(url) != 'undefined'){ + window.location = url; + } } // or collapse the sub-menu. else if (options.behaviour == 1 || options.behaviour == 2){