Changeset 3040

Show
Ignore:
Timestamp:
11/09/06 10:48:17 (2 years ago)
Author:
gregmac
Message:

Fixed #1314 - stupid IE javascript problem

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/script.js.php

    r2891 r3040  
    140140function amp_apply_changes() { 
    141141        if (confirm("About to reload backend configuration. This applies all outstanding changes to the live server.")) { 
     142                 
     143                if (document.all) { 
     144                        // need this for IE : http://support.microsoft.com/kb/q190244/ 
     145                        window.event.returnValue = false; 
     146                        // IE also uses window.location.href instead of location.href 
     147                        location = window.location.href; 
     148                } else { 
     149                        location = location.href; 
     150                } 
     151 
    142152                if (location.href.indexOf('?') == -1) { 
    143                         location.href = location.href + '?clk_reload=true'; 
     153                        location = location + '?clk_reload=true'; 
    144154                } else { 
    145                         location.href = location.href + '&clk_reload=true'; 
     155                        location = location + '&clk_reload=true'; 
    146156                } 
    147157                 
    148                 //location.href = '<?php // echo $href; ?>'; 
    149158        } 
    150159} 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads