mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Work in Progress: Content Editing in Admin Section
This commit is contained in:
parent
bd0e98aec2
commit
fa1ba6791b
39 changed files with 653 additions and 64 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue