Merge "Remove default event handler from theme switch links"

This commit is contained in:
Jenkins 2016-03-10 18:10:33 +00:00 committed by Gerrit Code Review
commit 59c3d7bfe3

View File

@ -27,6 +27,10 @@
$(document).on('click', '.theme-picker-item', function(e) { $(document).on('click', '.theme-picker-item', function(e) {
var $this = $(this); var $this = $(this);
// prevent the default <a> click handler from firing - on
// Chrome it confuses the reload() we do below
e.preventDefault();
if($this.hasClass('disabled')) { if($this.hasClass('disabled')) {
e.stopPropagation(); e.stopPropagation();
return; return;