Diff for /zogiLib/js/baselib.js between versions 1.10 and 1.12

version 1.10, 2008/01/17 17:59:09 version 1.12, 2008/10/29 01:00:56
Line 17  Foundation, Inc., 59 Temple Place - Suit Line 17  Foundation, Inc., 59 Temple Place - Suit
 Authors:   Authors: 
   Christian Luginbuehl, 01.05.2003 (first version)    Christian Luginbuehl, 01.05.2003 (first version)
   DW 24.03.2004 (Changed for digiLib in Zope)    DW 24.03.2004 (Changed for digiLib in Zope)
   Robert Casties, 17.1.2008    Robert Casties, 22.1.2008
   
 */  */
   
 function base_init() {  function base_init() {
     // init function      // init function
     baseScriptVersion = "1.2.3";      baseScriptVersion = "1.2.4";
     dlParams = new Object();      dlParams = new Object();
     browserType = getBrowserType();      browserType = getBrowserType();
 }  }
Line 376  function getElementPosition(elem) { Line 376  function getElementPosition(elem) {
     // returns a Position with the position of the element      // returns a Position with the position of the element
     var x = 0;      var x = 0;
     var y = 0;      var y = 0;
     if (elem.offsetParent) {      if (defined(elem.offsetParent)) {
         // use .offsetLeft for most browsers          // use .offsetLeft for most browsers
         var e = elem;          var e = elem;
         while (e) {          while (e) {
Line 607  function registerKeyDown(handler) { Line 607  function registerKeyDown(handler) {
 function getWinSize() {  function getWinSize() {
     // returns a Size with the current window size (mostly from www.quirksmode.org)      // returns a Size with the current window size (mostly from www.quirksmode.org)
     var wsize = new Size(100, 100);      var wsize = new Size(100, 100);
     if (defined(self.innerHeight))  {      if (!browserType.isIE)  {
         // all except Explorer          // all except Explorer
         if ((self.innerWidth == 0)||(self.innerHeight == 0)) {          if ((self.innerWidth == 0)||(self.innerHeight == 0)) {
             // Safari 1.2 (and other) bug              // Safari 1.2 (and other) bug

Removed from v.1.10  
changed lines
  Added in v.1.12


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>