Page MenuHomeIn-Portal Phabricator

D118.id341.diff
No OneTemporary

File Metadata

Created
Wed, Feb 25, 5:27 PM

D118.id341.diff

Index: core/admin_templates/js/script.js
===================================================================
--- core/admin_templates/js/script.js
+++ core/admin_templates/js/script.js
@@ -899,12 +899,21 @@
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('');

Event Timeline