mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:54:31 +08:00
Merge pull request #3440 from techAPJ/patch-1
UX: no need to show protocol in youtube link
This commit is contained in:
commit
940fa5b572
|
@ -66,7 +66,7 @@
|
||||||
innerHtml.push('<div class="html5-title-text-wrapper">');
|
innerHtml.push('<div class="html5-title-text-wrapper">');
|
||||||
innerHtml.push('<a class="html5-title-text" target="_blank" tabindex="3100" href="https://www.youtube.com/watch?v=', id, '">');
|
innerHtml.push('<a class="html5-title-text" target="_blank" tabindex="3100" href="https://www.youtube.com/watch?v=', id, '">');
|
||||||
if (title === undefined || title === null || title === '') {
|
if (title === undefined || title === null || title === '') {
|
||||||
innerHtml.push('https://www.youtube.com/watch?v=' + id);
|
innerHtml.push('youtube.com/watch?v=' + id);
|
||||||
} else {
|
} else {
|
||||||
innerHtml.push(title);
|
innerHtml.push(title);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user