Skip to content
Snippets Groups Projects
Commit 593b3753 authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: Don't assume href attribute is set

parent 56ab8e59
No related branches found
No related tags found
No related merge requests found
...@@ -1057,7 +1057,7 @@ if ($.support.pjax) { ...@@ -1057,7 +1057,7 @@ if ($.support.pjax) {
var $this = $(this); var $this = $(this);
if (!$this.hasClass('no-pjax') if (!$this.hasClass('no-pjax')
&& !$this.closest('.no-pjax').length && !$this.closest('.no-pjax').length
&& $this.attr('href')[0] != '#') && $this.attr('href').charAt(0) != '#')
$.pjax.click(event, {container: $this.data('pjaxContainer') || $('#pjax-container'), timeout: 2000}); $.pjax.click(event, {container: $this.data('pjaxContainer') || $('#pjax-container'), timeout: 2000});
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment