Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14383914
D16978.id40854.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D16978.id40854.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -10,7 +10,7 @@
'conpherence.pkg.css' => '0b64e988',
'conpherence.pkg.js' => '6249a1cf',
'core.pkg.css' => '27fd330b',
- 'core.pkg.js' => '14fcb9e4',
+ 'core.pkg.js' => 'e4260032',
'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => 'a4ba74b5',
'differential.pkg.js' => '634399e9',
@@ -505,7 +505,7 @@
'rsrc/js/core/behavior-hovercard.js' => 'bcaccd64',
'rsrc/js/core/behavior-keyboard-pager.js' => 'a8da01f0',
'rsrc/js/core/behavior-keyboard-shortcuts.js' => '01fca1f0',
- 'rsrc/js/core/behavior-lightbox-attachments.js' => 'e089b29b',
+ 'rsrc/js/core/behavior-lightbox-attachments.js' => 'ddcd41cf',
'rsrc/js/core/behavior-line-linker.js' => '1499a8cb',
'rsrc/js/core/behavior-more.js' => 'a80d0378',
'rsrc/js/core/behavior-object-selector.js' => 'e0ec7f2f',
@@ -651,7 +651,7 @@
'javelin-behavior-history-install' => '7ee2b591',
'javelin-behavior-icon-composer' => '8499b6ab',
'javelin-behavior-launch-icon-composer' => '48086888',
- 'javelin-behavior-lightbox-attachments' => 'e089b29b',
+ 'javelin-behavior-lightbox-attachments' => 'ddcd41cf',
'javelin-behavior-line-chart' => 'e4232876',
'javelin-behavior-load-blame' => '42126667',
'javelin-behavior-maniphest-batch-editor' => '782ab6e7',
@@ -2050,14 +2050,7 @@
'javelin-util',
'phabricator-shaped-request',
),
- 'de2e896f' => array(
- 'javelin-behavior',
- 'javelin-dom',
- 'javelin-typeahead',
- 'javelin-typeahead-ondemand-source',
- 'javelin-dom',
- ),
- 'e089b29b' => array(
+ 'ddcd41cf' => array(
'javelin-behavior',
'javelin-stratcom',
'javelin-dom',
@@ -2066,6 +2059,13 @@
'phuix-icon-view',
'phabricator-busy',
),
+ 'de2e896f' => array(
+ 'javelin-behavior',
+ 'javelin-dom',
+ 'javelin-typeahead',
+ 'javelin-typeahead-ondemand-source',
+ 'javelin-dom',
+ ),
'e0ec7f2f' => array(
'javelin-behavior',
'javelin-dom',
diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -512,6 +512,7 @@
'div',
array(
'class' => implode(' ', $classes),
+ 'id' => 'main-page-frame',
),
array(
$main_page,
diff --git a/webroot/rsrc/js/core/behavior-lightbox-attachments.js b/webroot/rsrc/js/core/behavior-lightbox-attachments.js
--- a/webroot/rsrc/js/core/behavior-lightbox-attachments.js
+++ b/webroot/rsrc/js/core/behavior-lightbox-attachments.js
@@ -50,7 +50,8 @@
e.kill();
- var links = JX.DOM.scry(document, 'a', 'lightboxable');
+ var mainFrame = JX.$('main-page-frame');
+ var links = JX.DOM.scry(mainFrame, 'a', 'lightboxable');
var phids = {};
var data;
for (var i = 0; i < links.length; i++) {
@@ -317,7 +318,9 @@
el.click();
}
- JX.Stratcom.listen(
+ // Only look for lightboxable inside the main page, not other lightboxes.
+ JX.DOM.listen(
+ JX.$('main-page-frame'),
'click',
['lightboxable'],
loadLightBox);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 9:55 AM (18 h, 3 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6918036
Default Alt Text
D16978.id40854.diff (3 KB)
Attached To
Mode
D16978: Prevent double lightbox in lightbox comments
Attached
Detach File
Event Timeline
Log In to Comment