Skip to content

Commit c3635e4

Browse files
author
vrana
committedApr 16, 2012
Hide oncopy <pre> in Firefox
Test Plan: Comment `JX.DOM.remove(pre)` to better see the problem in old code. Apply this diff and verify that the pre is not shown. Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2245
1 parent 1ea8bd3 commit c3635e4

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed
 

‎src/__celerity_resource_map__.php

+23-23
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
),
398398
'aphront-dialog-view-css' =>
399399
array(
400-
'uri' => '/res/531ebee9/rsrc/css/aphront/dialog-view.css',
400+
'uri' => '/res/eedc489d/rsrc/css/aphront/dialog-view.css',
401401
'type' => 'css',
402402
'requires' =>
403403
array(
@@ -1249,7 +1249,7 @@
12491249
),
12501250
'javelin-behavior-phabricator-oncopy' =>
12511251
array(
1252-
'uri' => '/res/6aa56092/rsrc/js/application/core/behavior-oncopy.js',
1252+
'uri' => '/res/f490b8d1/rsrc/js/application/core/behavior-oncopy.js',
12531253
'type' => 'js',
12541254
'requires' =>
12551255
array(
@@ -2414,7 +2414,7 @@
24142414
), array(
24152415
'packages' =>
24162416
array(
2417-
'dba9e1de' =>
2417+
'30ae3b0f' =>
24182418
array(
24192419
'name' => 'core.pkg.css',
24202420
'symbols' =>
@@ -2439,7 +2439,7 @@
24392439
17 => 'aphront-pager-view-css',
24402440
18 => 'phabricator-transaction-view-css',
24412441
),
2442-
'uri' => '/res/pkg/dba9e1de/core.pkg.css',
2442+
'uri' => '/res/pkg/30ae3b0f/core.pkg.css',
24432443
'type' => 'css',
24442444
),
24452445
'21d01ed8' =>
@@ -2585,17 +2585,17 @@
25852585
'reverse' =>
25862586
array(
25872587
'aphront-attached-file-view-css' => '8db30c56',
2588-
'aphront-crumbs-view-css' => 'dba9e1de',
2589-
'aphront-dialog-view-css' => 'dba9e1de',
2590-
'aphront-form-view-css' => 'dba9e1de',
2588+
'aphront-crumbs-view-css' => '30ae3b0f',
2589+
'aphront-dialog-view-css' => '30ae3b0f',
2590+
'aphront-form-view-css' => '30ae3b0f',
25912591
'aphront-headsup-action-list-view-css' => 'e7780f43',
2592-
'aphront-list-filter-view-css' => 'dba9e1de',
2593-
'aphront-pager-view-css' => 'dba9e1de',
2594-
'aphront-panel-view-css' => 'dba9e1de',
2595-
'aphront-side-nav-view-css' => 'dba9e1de',
2596-
'aphront-table-view-css' => 'dba9e1de',
2597-
'aphront-tokenizer-control-css' => 'dba9e1de',
2598-
'aphront-typeahead-control-css' => 'dba9e1de',
2592+
'aphront-list-filter-view-css' => '30ae3b0f',
2593+
'aphront-pager-view-css' => '30ae3b0f',
2594+
'aphront-panel-view-css' => '30ae3b0f',
2595+
'aphront-side-nav-view-css' => '30ae3b0f',
2596+
'aphront-table-view-css' => '30ae3b0f',
2597+
'aphront-tokenizer-control-css' => '30ae3b0f',
2598+
'aphront-typeahead-control-css' => '30ae3b0f',
25992599
'differential-changeset-view-css' => 'e7780f43',
26002600
'differential-core-view-css' => 'e7780f43',
26012601
'differential-inline-comment-editor' => '270dd507',
@@ -2652,23 +2652,23 @@
26522652
'javelin-workflow' => '21d01ed8',
26532653
'maniphest-task-summary-css' => '8db30c56',
26542654
'maniphest-transaction-detail-css' => '8db30c56',
2655-
'phabricator-app-buttons-css' => 'dba9e1de',
2655+
'phabricator-app-buttons-css' => '30ae3b0f',
26562656
'phabricator-content-source-view-css' => 'e7780f43',
2657-
'phabricator-core-buttons-css' => 'dba9e1de',
2658-
'phabricator-core-css' => 'dba9e1de',
2659-
'phabricator-directory-css' => 'dba9e1de',
2657+
'phabricator-core-buttons-css' => '30ae3b0f',
2658+
'phabricator-core-css' => '30ae3b0f',
2659+
'phabricator-directory-css' => '30ae3b0f',
26602660
'phabricator-drag-and-drop-file-upload' => '270dd507',
26612661
'phabricator-dropdown-menu' => '21d01ed8',
2662-
'phabricator-jump-nav' => 'dba9e1de',
2662+
'phabricator-jump-nav' => '30ae3b0f',
26632663
'phabricator-keyboard-shortcut' => '21d01ed8',
26642664
'phabricator-keyboard-shortcut-manager' => '21d01ed8',
26652665
'phabricator-menu-item' => '21d01ed8',
26662666
'phabricator-object-selector-css' => 'e7780f43',
26672667
'phabricator-paste-file-upload' => '21d01ed8',
2668-
'phabricator-remarkup-css' => 'dba9e1de',
2668+
'phabricator-remarkup-css' => '30ae3b0f',
26692669
'phabricator-shaped-request' => '270dd507',
2670-
'phabricator-standard-page-view' => 'dba9e1de',
2671-
'phabricator-transaction-view-css' => 'dba9e1de',
2672-
'syntax-highlighting-css' => 'dba9e1de',
2670+
'phabricator-standard-page-view' => '30ae3b0f',
2671+
'phabricator-transaction-view-css' => '30ae3b0f',
2672+
'syntax-highlighting-css' => '30ae3b0f',
26732673
),
26742674
));

‎webroot/rsrc/js/application/core/behavior-oncopy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ JX.behavior('phabricator-oncopy', function() {
6161
position: 'absolute',
6262
left: '-10000px'
6363
};
64-
var pre = JX.$N('pre', style, result);
64+
var pre = JX.$N('pre', {style: style}, result);
6565
document.body.appendChild(pre);
6666

6767
// Select the text in the <pre>.
@@ -70,7 +70,7 @@ JX.behavior('phabricator-oncopy', function() {
7070
selection.removeAllRanges();
7171
selection.addRange(range);
7272

73-
setTimeout(function() { JX.DOM.remove(pre) }, 0);
73+
setTimeout(function() { JX.DOM.remove(pre); }, 0);
7474

7575
// TODO: I tried to restore the old selection range but it doesn't seem
7676
// to work or give me any errors. So you lose your selection when you

0 commit comments

Comments
 (0)
Failed to load comments.