mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
Work in Progress: Content Editing in Admin Section
This commit is contained in:
@ -134,6 +134,10 @@ Discourse = Ember.Application.createWithMixins({
|
||||
if (href === '#') return;
|
||||
if ($currentTarget.attr('target')) return;
|
||||
if ($currentTarget.data('auto-route')) return;
|
||||
|
||||
// If it's an ember #linkTo skip it
|
||||
if ($currentTarget.hasClass('ember-view')) return;
|
||||
|
||||
if ($currentTarget.hasClass('lightbox')) return;
|
||||
if (href.indexOf("mailto:") === 0) return;
|
||||
if (href.match(/^http[s]?:\/\//i) && !href.match(new RegExp("^http:\\/\\/" + window.location.hostname, "i"))) return;
|
||||
|
Reference in New Issue
Block a user