Changeset 2271

Show
Ignore:
Timestamp:
08/22/06 09:26:29 (7 years ago)
Author:
diego_iastrubni
Message:

who the fuck messed up my favorite browser...?
hell, konqueror was detected as IE, and on IE it seems that this project uses
some ugly hacks to make it look the same as on normal browsers.

(now i feel better...)

Files:

Legend:

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

    r1872 r2271  
    2626Is_NS4 = (document.layers) ? true : false; 
    2727Is_IE = (document.all) ? true : false; 
     28 
     29// detect for konqueror, taken from 
     30// http://www.javascript-source.com/ 
     31var detect = navigator.userAgent.toLowerCase(); 
     32if (checkIt('konqueror')) 
     33        Is_IE = false; 
     34 
     35function checkIt(string) 
     36{ 
     37  place = detect.indexOf(string) + 1; 
     38  thestring = string; 
     39  return place; 
     40} 
     41 
    2842Is_IE4 = Is_IE && !Is_DOM; 
    2943Is_Mac = (navigator.appVersion.indexOf("Mac") != -1); 
  • freepbx/trunk/amp_conf/htdocs/admin/common/script.js.php

    r2198 r2271  
    2626Is_NS4 = (document.layers) ? true : false; 
    2727Is_IE = (document.all) ? true : false; 
     28 
     29// detect for konqueror, taken from 
     30// http://www.javascript-source.com/ 
     31var detect = navigator.userAgent.toLowerCase(); 
     32if (checkIt('konqueror')) 
     33        Is_IE = false; 
     34 
     35function checkIt(string) 
     36{ 
     37  place = detect.indexOf(string) + 1; 
     38  thestring = string; 
     39  return place; 
     40} 
     41 
    2842Is_IE4 = Is_IE && !Is_DOM; 
    2943Is_Mac = (navigator.appVersion.indexOf("Mac") != -1);