Changeset 13483

Show
Ignore:
Timestamp:
02/20/12 07:08:09 (1 year ago)
Author:
mbrevda
Message:

once is enough

Files:

Legend:

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

    r13481 r13483  
    147147 
    148148//add IE specifc styling polyfills 
     149//offer google chrome frame for the richest experience 
    149150if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) { 
    150151  $html .= '<!--[if lte IE 10]>'; 
     
    206207 
    207208 
    208 //offer google chrome frame for the richest experience 
    209 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) { 
    210   $html .= <<<END 
    211   <!--[if IE]> 
    212     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> 
    213     <script> 
    214       !$.cookie('skip_cf_check') //skip check if skip_cf_check cookie is active 
    215         && CFInstall  //make sure CFInstall is loaded  
    216         && !!window.attachEvent //attachEvent is ie only, should never fire in other browsers 
    217         && window.attachEvent("onload", function() { 
    218          CFInstall.check({ 
    219           preventPrompt: true, 
    220           onmissing: function() { 
    221             $('<div></div>') 
    222               .html('Unfortunately, some features may not work correctly in your ' 
    223                 + 'current browser. We suggest that you activate Chrome Frame, ' 
    224                 + 'which will offer you the richest posible experience. ') 
    225               .dialog({ 
    226                 title: 'Activate Chrome Frame', 
    227                 resizable: false, 
    228                 modal: true, 
    229                 position: ['center', 'center'], 
    230                 close: function (e) { 
    231                   $.cookie('skip_cf_check', 'true'); 
    232                   $(e.target).dialog("destroy").remove(); 
    233                 }, 
    234                 buttons: [ 
    235                   { 
    236                     text: 'Activate', 
    237                     click: function() { 
    238                         window.location = 'http://www.google.com/chromeframe/?redirect=true'; 
    239                     } 
    240  
    241                   }, 
    242                   { 
    243                     text: fpbx.msg.framework.cancel, 
    244                     click: function() { 
    245                         //set cookie to prevent prompting again in this session 
    246                         $.cookie('skip_cf_check', 'true'); 
    247                         $(this).dialog("destroy").remove(); 
    248                       } 
    249                   } 
    250                   ] 
    251               }); 
    252           } 
    253         }); 
    254  
    255       }); 
    256   </script> 
    257   <![endif]--> 
    258 END; 
    259 } 
    260  
    261209echo $html; 
    262210?>