Merge "Remove default event handler from theme switch links"
This commit is contained in:
commit
59c3d7bfe3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user