Changeset 4920 for freepbx/branches

Show
Ignore:
Timestamp:
08/21/07 01:11:57 (6 years ago)
Author:
p_lindheimer
Message:

name target window for ARI and Help so new windows are not constantly opened

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx.php

    r4774 r4920  
    2323    $href .= $page; 
    2424 
    25   if ($new_window != NULL) 
    26     $html .= "target=\"_blank\" "; 
    27  
     25  // If not NULL and just true, then previous behavior open a new window. If 
     26  // A name is given, then use javascript to target that window if already open 
     27  // 
     28  if ($new_window != NULL) { 
     29    if ($new_window === true) { 
     30      $html .= "target=\"_blank\" "; 
     31    } else { 
     32      $html .= "target=\"$new_window\" "; 
     33      //$html .= "onClick=\"return menu_popup(this, '$new_window')\" "; 
     34    } 
     35  } 
    2836  $html .= "href=\"$href\">$name</a></li>"; 
    2937 
     
    7987  } 
    8088?> 
     89 
    8190  <script type="text/javascript" src="common/script.js.php"></script> 
    8291<?php 
     
    157166  print_sub_tool( _("Reports")   , "reports.php", $currentFile=='reports.php' ); 
    158167  print_sub_tool( _("Panel")     , "panel.php"  , $currentFile=='panel.php' ); 
    159   print_sub_tool( _("Recordings"), "../recordings/index.php"  ,0, NULL, true ); 
    160   print_sub_tool( _("Help"), "http://support.freepbx.org$help_args"  ,0, NULL, true ); 
     168  print_sub_tool( _("Recordings"), "../recordings/index.php"  ,0, NULL, "ari" ); 
     169  print_sub_tool( _("Help"), "http://support.freepbx.org$help_args", 0, NULL, "help" ); 
    161170  echo "<li class=\"last\"><a >&nbsp</a></li>"; 
    162171  echo "\t\t</ul>\n";