|
|
@ -2208,6 +2208,10 @@ function searchRepositories() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function showCodeViewMenu() { |
|
|
|
function showCodeViewMenu() { |
|
|
|
|
|
|
|
if ($('.code-view-menu-list').length === 0) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Get clicked tr
|
|
|
|
// Get clicked tr
|
|
|
|
const $code_tr = $('.code-view td.lines-code.active').parent(); |
|
|
|
const $code_tr = $('.code-view td.lines-code.active').parent(); |
|
|
|
|
|
|
|
|
|
|
@ -2873,6 +2877,11 @@ function selectRange($list, $select, $from) { |
|
|
|
|
|
|
|
|
|
|
|
// add hashchange to permalink
|
|
|
|
// add hashchange to permalink
|
|
|
|
const $issue = $('a.ref-in-new-issue'); |
|
|
|
const $issue = $('a.ref-in-new-issue'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($issue.length === 0) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const matched = $issue.attr('href').match(/%23L\d+$|%23L\d+-L\d+$/); |
|
|
|
const matched = $issue.attr('href').match(/%23L\d+$|%23L\d+-L\d+$/); |
|
|
|
if (matched) { |
|
|
|
if (matched) { |
|
|
|
$issue.attr('href', $issue.attr('href').replace($issue.attr('href').substr(matched.index), `%23L${a}-L${b}`)); |
|
|
|
$issue.attr('href', $issue.attr('href').replace($issue.attr('href').substr(matched.index), `%23L${a}-L${b}`)); |
|
|
@ -2888,6 +2897,11 @@ function selectRange($list, $select, $from) { |
|
|
|
|
|
|
|
|
|
|
|
// add hashchange to permalink
|
|
|
|
// add hashchange to permalink
|
|
|
|
const $issue = $('a.ref-in-new-issue'); |
|
|
|
const $issue = $('a.ref-in-new-issue'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($issue.length === 0) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const matched = $issue.attr('href').match(/%23L\d+$|%23L\d+-L\d+$/); |
|
|
|
const matched = $issue.attr('href').match(/%23L\d+$|%23L\d+-L\d+$/); |
|
|
|
if (matched) { |
|
|
|
if (matched) { |
|
|
|
$issue.attr('href', $issue.attr('href').replace($issue.attr('href').substr(matched.index), `%23${$select.attr('rel')}`)); |
|
|
|
$issue.attr('href', $issue.attr('href').replace($issue.attr('href').substr(matched.index), `%23${$select.attr('rel')}`)); |
|
|
|