Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102239
D118.id265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 18, 9:46 AM
Size
995 B
Mime Type
text/x-diff
Expires
Tue, Aug 19, 9:46 AM (5 h, 32 m)
Engine
blob
Format
Raw Data
Handle
714027
Attached To
D118: INP-1468 - Automatically generate popup window titles in Admin Console
D118.id265.diff
View Options
Index: core/admin_templates/js/script.js
===================================================================
--- core/admin_templates/js/script.js
+++ core/admin_templates/js/script.js
@@ -896,15 +896,25 @@
nlsMenuRendered = true;
}
-function set_window_title($title) {
+function set_window_title($title)
+{
var $window = window;
- if ( $window.name != 'main' ) {
- // traverse through real popups
- $window = getFrame('main');
+ if ( main_title.length ) {
+ $title += ' - ' + main_title;
}
- $window.top.document.title = (main_title.length ? main_title + ' - ' : '') + $title;
+ if ( !$modal_windows && getWindowOpener($window) ) {
+ $window.document.title = $title;
+ }
+ else {
+ if ( $window.name != 'main' ) {
+ // Traverse through real popups.
+ $window = getFrame('main');
+ }
+
+ $window.top.document.title = $title;
+ }
if ( $modal_windows ) {
$window.TB.setWindowTitle('');
@@ -1942,4 +1952,4 @@
}, 1000);
}
);
-}
\ No newline at end of file
+}
Event Timeline
Log In to Comment