Changeset 12

Show
Ignore:
Timestamp:
06/10/06 18:44:17 (2 years ago)
Author:
jallen
Message:

r1032@jays-computer (orig r30781): bchoate | 2006-06-09 23:02:34 -0700
Added 'refocus' parameter to control whether popup window should bring itself to the foreground or not. BugId: 30109

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/MT/App/CMS.pm

    r5 r12  
    29682968        } 
    29692969        $param{show_feedback} = $param{show_allow_pings} || $param{show_allow_comments}; 
     2970        $param{refocus} = 1; 
    29702971        return $app->build_page("bm_entry.tmpl", \%param); 
    29712972    } elsif ($param{output}) { 
     
    75017502    $app->run_callbacks('RebuildOptions', $app, \@options); 
    75027503    $param{rebuild_option_loop} = \@options; 
     7504    $param{refocus} = 1; 
    75037505    $app->add_breadcrumb($app->translate('Rebuild Site')); 
    75047506    $app->build_page('rebuild_confirm.tmpl', \%param); 
     
    82118213    push @extra_paths, { path => $date_stamp, label => '<' . $app->translate($label_path) . '>' . '/' . $date_stamp }; 
    82128214    $param{extra_paths} = \@extra_paths; 
     8215    $param{refocus} = 1; 
    82138216    $app->build_page('upload.tmpl', \%param); 
    82148217} 
  • trunk/tmpl/cms/header-popup.tmpl

    r2 r12  
    1919</head> 
    2020 
    21 <body id="mode_<TMPL_VAR NAME=MODE>" class="<TMPL_IF NAME=BLOG_ID>blog blog-<TMPL_VAR NAME=BLOG_ID><TMPL_ELSE>system</TMPL_IF>" onload="window.focus()"> 
     21<body id="mode_<TMPL_VAR NAME=MODE>" class="<TMPL_IF NAME=BLOG_ID>blog blog-<TMPL_VAR NAME=BLOG_ID><TMPL_ELSE>system</TMPL_IF>"<TMPL_IF NAME=REFOCUS> onload="window.focus()</TMPL_IF>"> 
    2222 
    2323<div id="topnav-img"><h1><img alt="Movable Type" src="<TMPL_VAR NAME=STATIC_URI>images/topnav-logo-popup.gif" width="204" height="66" border="0" /></h1></div>