Changeset 10838


Ignore:
Timestamp:
May 10, 2011, 6:24:43 PM (13 years ago)
Author:
gbo
Message:

2.2.c fix js bug with FF4.01

Location:
extensions/LLGBO2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/js/sweettitlesn1_comment.js

    r10453 r10838  
    4141        xCord : 0,                                                             
    4242        yCord : 0,                                                             
    43         tipElements : ['a','span','area'],
     43        tipElements : ['a','area'],
    4444        forbidenClasses : ['navThumb','markItUpButton'],       
    4545        obj : Object,                                                   
     
    7676                                                        el.setAttribute('tiptitle', tv);
    7777                                                        el.setAttribute('tipswt', sv );
    78                                                         el.setAttribute('title','');
    79                                                         el.removeAttribute('swttips');}
    80                                                 el.removeAttribute('alt');} }
     78                                                        el.removeAttribute('swttips');
     79                                                        el.removeAttribute('alt');
     80                                                        el.removeAttribute('title'); }
     81                                        }
     82}
    8183                }
    8284        },
     
    116118                swtT.Move;
    117119                var T = this.x.style;
     120                var scrX = Number(this.xCord);
     121                var scrY = Number(this.yCord);
     122                var tp = parseInt(scrY+8);
     123                var lt = parseInt(scrX+8);
     124                var D = document.documentElement;
     125                        if ( parseInt(D.clientWidth+D.scrollLeft) < parseInt(this.x.offsetWidth+lt) ) {
     126                        T.left = parseInt(lt-(this.x.offsetWidth+3))+'px';
     127                } else {
     128                        T.left = lt+'px';               }
     129                if ( parseInt(D.clientHeight+D.scrollTop) < parseInt(this.x.offsetHeight+tp) ) {
     130                        T.top = parseInt(tp-(this.x.offsetHeight+3))+'px';
     131                } else {T.top = tp+'px';                }
    118132                T.visibility = 'visible';
    119133                T.opacity = '.1';
  • extensions/LLGBO2/main.inc.php

    r10453 r10838  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.2.b
     4Version:  2.2.c
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    1010  2.2.a compliant 2.2rc Piwigo
    1111  2.2.b Full compliant 2.2 Piwigo + fix bug in admin
     12  2.2.c Fix JS bug with FF4.01 + add language Cz
    1213*/
    1314if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    1617global $conf;
    1718
    18 define ('LLGBO_INFO_VERSION','2.2.b');
     19define ('LLGBO_INFO_VERSION','2.2.c');
    1920if (!defined('LLGBO_PATH'))
    2021{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
Note: See TracChangeset for help on using the changeset viewer.