Changeset 10058

Show
Ignore:
Timestamp:
07/11/10 13:25:07 (3 years ago)
Author:
p_lindheimer
Message:

temporary improvement for returning to config page after an installation, though this should all be fixed when this rewritten. Also ... hardcodes path to /admin/config.php until access is fixed re #4421

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/endpointman/includes/functions.inc

    r10052 r10058  
    780780    $this->deltree(PHONE_MODULES_PATH."temp/" .$brand_directory); 
    781781    exec("chmod 777 -R ". PHONE_MODULES_PATH.$brand_directory); 
    782     echo "<script>$('div.demo-container').text('Done!, Please refresh the page to see the installed options.');</script>"; 
     782 
     783    //TODO: once iframe access is fixed to not go into the module, this should be $_SERVER['PHP_SELF']."?type=tool...", and type=tool should be passed in (in case it is not tool) 
     784    // 
     785    echo "<script>$('div.demo-container').html('<a href=\"#\" onclick=\"parent.location.href = \'/admin/config.php?type=tool&display=epm_config\';\">"._("Install Done, Click to Return")."</a>');</script>"; 
    783786  } 
    784787   
     
    938941    $this->sync_product($id); 
    939942     
    940     echo "<script>$('div.demo-container').text('Done!, Please refresh the page to see the installed options.');</script>"; 
     943    //TODO: once iframe access is fixed to not go into the module, this should be $_SERVER['PHP_SELF']."?type=tool...", and type=tool should be passed in (in case it is not tool) 
     944    // 
     945    echo "<script>$('div.demo-container').html('<a href=\"#\" onclick=\"parent.location.href = \'/admin/config.php?type=tool&display=epm_config\';\">"._("Install Done, Click to Return")."</a>');</script>"; 
    941946     
    942947    if($global_cfg['debug']) {