Ignore:
Timestamp:
May 27, 2012, 9:50:54 AM (12 years ago)
Author:
grum
Message:

feature:2436 - Compatibility with Piwigo 2.4

Location:
extensions/GrumPluginClasses/js
Files:
22 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/js/simpleTip.js

    r8961 r15340  
    7070      offsetY:0,
    7171      classes:'',
    72       arrowImgDir: '',
    7372      arrowWidth: 12,
    7473      arrowHeight: 12
     
    322321        arrowX=-bwX;
    323322        arrowY=-items[itemIndex].options.arrowHeight+bwY;
    324         arrowModel='up';
     323        arrowModel='Up';
    325324        break;
    326325
     
    330329        arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2;
    331330        arrowY=-items[itemIndex].options.arrowHeight+bwY;
    332         arrowModel='up';
     331        arrowModel='Up';
    333332        break;
    334333
     
    338337        arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX;
    339338        arrowY=-items[itemIndex].options.arrowHeight+bwY;
    340         arrowModel='up';
     339        arrowModel='Up';
    341340        break;
    342341
     
    346345        arrowX=-items[itemIndex].options.arrowWidth+bwX;
    347346        arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY;
    348         arrowModel='left';
     347        arrowModel='Left';
    349348        break;
    350349
     
    359358        arrowX=stWidthI+bwX;
    360359        arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY;
    361         arrowModel='right';
     360        arrowModel='Right';
    362361        break;
    363362
     
    367366        arrowX=-bwX;
    368367        arrowY=stHeightI+bwY;
    369         arrowModel='down';
     368        arrowModel='Down';
    370369        break;
    371370
     
    375374        arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2+bwX;
    376375        arrowY=stHeightI+bwY;
    377         arrowModel='down';
     376        arrowModel='Down';
    378377        break;
    379378
     
    383382        arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX;
    384383        arrowY=stHeightI+bwY;
    385         arrowModel='down';
     384        arrowModel='Down';
    386385        break;
    387386    }
     
    389388    if(items[itemIndex].options.drawArrow & arrowModel!='')
    390389    {
     390      switch(arrowModel)
     391      {
     392        case 'Up':
     393          bgp='-'+items[itemIndex].options.arrowHeight+'px 0px';
     394          break;
     395        case 'Left':
     396          bgp='0px -'+items[itemIndex].options.arrowWeight+'px';
     397          break;
     398        case 'Down':
     399          bgp='0px 0px';
     400          break;
     401        case 'Right':
     402          bgp='-'+items[itemIndex].options.arrowHeight+'px -'+items[itemIndex].options.arrowWeight+'px';
     403          break;
     404      }
    391405      $('#iSimpleTipArrow'+options.name).css(
    392406        {
    393407          display: 'block',
    394           background: 'url("'+items[itemIndex].options.arrowImgDir+'/arrow_'+arrowModel+'.png") no-repeat scroll 0 0 transparent',
     408          backgroundPosition: bgp,
    395409          marginLeft: arrowX+'px',
    396410          marginTop: arrowY+'px',
     
    434448    if($('#iSimpleTip'+options.name).length==0)
    435449    {
    436       text="<div id='iSimpleTip"+options.name+"' style='z-index:15000;display:none;position:absolute;left:0px;top:0px;'><div id='iSimpleTipShadow"+options.name+"' style='position:absolute;width:100%;height:100%;background:#000000;opacity:0.4;filter:alpha(opacity:40);display:block;z-index:-1;margin-left:2px;margin-top:2px;'></div><div id='iSimpleTipArrow"+options.name+"' style='position:absolute;'></div><div id='iSimpleTipContent"+options.name+"'></div></div>";
     450      text="<div class='cSimpleTip' id='iSimpleTip"+options.name+"' style='z-index:15000;display:none;position:absolute;left:0px;top:0px;'><div class='cSimpleTipShadow' id='iSimpleTipShadow"+options.name+"'></div><div class='cSimpleTipArrow' id='iSimpleTipArrow"+options.name+"'></div><div class='cSimpleTipContent' id='iSimpleTipContent"+options.name+"'></div></div>";
    437451      $('body').append(text);
    438452    }
  • extensions/GrumPluginClasses/js/ui.categorySelector.js

    r8961 r15340  
    22 * -----------------------------------------------------------------------------
    33 * file: ui.categorySelector.js
    4  * file version: 1.1.0
    5  * date: 2011-01-12
     4 * file version: 1.1.1
     5 * date: 2012-05-25
    66 *
    77 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses"
     
    4040 * |         |            | * add 'displayPath' property
    4141 * |         |            |
     42 * | 1.1.1   | 2012-05-25 | * fix bug with jquery 1.7.2
     43 * |         |            |   . display list now works :)
     44 * |         |            |
     45 * |         |            |
     46 * |         |            |
    4247 * |         |            |
    4348 *
     
    123128                        {
    124129                          privateMethods.displaySelector($this, !$this.data('properties').selectorVisible);
    125                           $(this).focus();
     130                          //$(this).focus(); // if get the focus, it hide the dorp-down list.. ?
    126131                        }
    127132                      ),
     
    783788            return(null);
    784789          }
    785         } // numberOfCategories
     790        }, // numberOfCategories
    786791    }; // methods
    787792
     
    16181623                {
    16191624                  objects.listContainer.html('Error ! '+msg);
    1620                 }
     1625                },
    16211626            }
    16221627         );
  • extensions/GrumPluginClasses/js/ui.inputList.js

    r8961 r15340  
    22 * -----------------------------------------------------------------------------
    33 * file: ui.inputList.js
    4  * file version: 1.0.0
    5  * date: 2010-11-02
     4 * file version: 1.0.1
     5 * date: 2012-05-25
    66 *
    77 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses"
     
    2424 * | 1.0.0   | 2010/10/10 | first release
    2525 * |         |            |
    26  * |         |            |
     26 * | 1.0.1   | 2012/05/25 | fix bug with jquery 1.7.2
     27 * |         |            |  . display list now works :)
    2728 * |         |            |
    2829 * |         |            |
     
    107108                        {
    108109                          privateMethods.displaySelector($this, !$this.data('properties').selectorVisible);
    109                           $(this).focus();
     110                          //$(this).focus();  // if get the focus, it hide the dorp-down list.. ?
    110111                        }
    111112                      ),
     
    166167              privateMethods.setOptions($this, opt);
    167168
    168               if($this.text()!='') 
     169              if($this.text()!='')
    169170              {
    170171                var tmp=$.parseJSON($.trim($this.text())),
     
    180181                  values=tmp.values;
    181182                }
    182                
     183
    183184                if(tmp.selected!=null) selectedValues=tmp.selected;
    184                
    185                 privateMethods.setItems($this, values); 
    186                 privateMethods.setValue($this, selectedValues); 
    187                
     185
     186                privateMethods.setItems($this, values);
     187                privateMethods.setValue($this, selectedValues);
     188
    188189              }
    189190
     
    560561              {
    561562                for(var i=0;i<properties.items.length;i++)
    562                 {   
     563                {
    563564                  if($.inArray(i, properties.index)==-1)
    564565                    returned.push(properties.items[i].value);
Note: See TracChangeset for help on using the changeset viewer.