1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Fix a JS issue in Paste

Summary: Fixes T5227.
This commit is contained in:
epriestley 2014-05-30 10:07:33 -07:00
parent 323c529c3b
commit 851794e895
2 changed files with 16 additions and 10 deletions

View file

@ -460,7 +460,7 @@ return array(
'rsrc/js/core/behavior-keyboard-shortcuts.js' => 'd75709e6', 'rsrc/js/core/behavior-keyboard-shortcuts.js' => 'd75709e6',
'rsrc/js/core/behavior-konami.js' => '5bc2cb21', 'rsrc/js/core/behavior-konami.js' => '5bc2cb21',
'rsrc/js/core/behavior-lightbox-attachments.js' => '3aa45ad9', 'rsrc/js/core/behavior-lightbox-attachments.js' => '3aa45ad9',
'rsrc/js/core/behavior-line-linker.js' => '0969ff43', 'rsrc/js/core/behavior-line-linker.js' => 'f726d506',
'rsrc/js/core/behavior-more.js' => '9b9197be', 'rsrc/js/core/behavior-more.js' => '9b9197be',
'rsrc/js/core/behavior-object-selector.js' => 'e6f67523', 'rsrc/js/core/behavior-object-selector.js' => 'e6f67523',
'rsrc/js/core/behavior-oncopy.js' => 'c3e218fe', 'rsrc/js/core/behavior-oncopy.js' => 'c3e218fe',
@ -601,7 +601,7 @@ return array(
'javelin-behavior-phabricator-hovercards' => '9c808199', 'javelin-behavior-phabricator-hovercards' => '9c808199',
'javelin-behavior-phabricator-keyboard-pager' => 'b657bdf8', 'javelin-behavior-phabricator-keyboard-pager' => 'b657bdf8',
'javelin-behavior-phabricator-keyboard-shortcuts' => 'd75709e6', 'javelin-behavior-phabricator-keyboard-shortcuts' => 'd75709e6',
'javelin-behavior-phabricator-line-linker' => '0969ff43', 'javelin-behavior-phabricator-line-linker' => 'f726d506',
'javelin-behavior-phabricator-nav' => 'b5842a5e', 'javelin-behavior-phabricator-nav' => 'b5842a5e',
'javelin-behavior-phabricator-notification-example' => 'c51a6616', 'javelin-behavior-phabricator-notification-example' => 'c51a6616',
'javelin-behavior-phabricator-object-selector' => 'e6f67523', 'javelin-behavior-phabricator-object-selector' => 'e6f67523',
@ -864,13 +864,6 @@ return array(
array( array(
0 => 'javelin-install', 0 => 'javelin-install',
), ),
'0969ff43' =>
array(
0 => 'javelin-behavior',
1 => 'javelin-stratcom',
2 => 'javelin-dom',
3 => 'javelin-history',
),
'09b15cf1' => '09b15cf1' =>
array( array(
0 => 'javelin-stratcom', 0 => 'javelin-stratcom',
@ -1994,6 +1987,13 @@ return array(
2 => 'javelin-util', 2 => 'javelin-util',
3 => 'javelin-reactor', 3 => 'javelin-reactor',
), ),
'f726d506' =>
array(
0 => 'javelin-behavior',
1 => 'javelin-stratcom',
2 => 'javelin-dom',
3 => 'javelin-history',
),
'f7379f45' => 'f7379f45' =>
array( array(
0 => 'javelin-behavior', 0 => 'javelin-behavior',

View file

@ -10,7 +10,13 @@ JX.behavior('phabricator-line-linker', function() {
var origin = null; var origin = null;
var target = null; var target = null;
var root = null; var root = null;
var editor_link = JX.$('editor_link');
var editor_link = null;
try {
editor_link = JX.$('editor_link');
} catch (ex) {
// Ignore.
}
function getRowNumber(tr) { function getRowNumber(tr) {
var th = JX.DOM.find(tr, 'th', 'phabricator-source-line'); var th = JX.DOM.find(tr, 'th', 'phabricator-source-line');