Show
Ignore:
Timestamp:
08/04/07 15:04:49 (6 years ago)
Author:
gregmac
Message:

Make notification text regular html (instead of alert() popup, now copy&paste-able)

Files:

Legend:

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

    r4668 r4682  
    2121    echo '<li><strong>'.$notify_names[ $item['level'] ].':</strong>&nbsp;'.$item['display_text']; 
    2222    if (!empty($item['extended_text'])) { 
    23       $text = addslashes($item['extended_text']); 
    24       $text = str_replace("\n", "\\n", $text); // convert php code to javascript code - output "\n" to the page 
    25       echo '&nbsp;&nbsp;<a href="#" onclick="alert(\''.$text.'\');"><i>more..</i></a>'; 
     23      if ($_GET['item'] == $item['module'].'.'.$item['id']) { 
     24        echo '<p>'.nl2br($item['extended_text']).'</p>'; 
     25      } else { 
     26        $link = $_SERVER['PHP_SELF'].'?display='.addslashes($_GET['display']).'&amp;item='.$item['module'].'.'.$item['id']; 
     27        echo '&nbsp;&nbsp;<a href="'.$link.'"><i>more..</i></a>'; 
     28      } 
    2629    } 
    2730    echo '</td></li>';