Changeset 15340 for extensions/GrumPluginClasses/js
- Timestamp:
- May 27, 2012, 9:50:54 AM (13 years ago)
- Location:
- extensions/GrumPluginClasses/js
- Files:
-
- 22 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/js/simpleTip.js
r8961 r15340 70 70 offsetY:0, 71 71 classes:'', 72 arrowImgDir: '',73 72 arrowWidth: 12, 74 73 arrowHeight: 12 … … 322 321 arrowX=-bwX; 323 322 arrowY=-items[itemIndex].options.arrowHeight+bwY; 324 arrowModel=' up';323 arrowModel='Up'; 325 324 break; 326 325 … … 330 329 arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2; 331 330 arrowY=-items[itemIndex].options.arrowHeight+bwY; 332 arrowModel=' up';331 arrowModel='Up'; 333 332 break; 334 333 … … 338 337 arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX; 339 338 arrowY=-items[itemIndex].options.arrowHeight+bwY; 340 arrowModel=' up';339 arrowModel='Up'; 341 340 break; 342 341 … … 346 345 arrowX=-items[itemIndex].options.arrowWidth+bwX; 347 346 arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY; 348 arrowModel=' left';347 arrowModel='Left'; 349 348 break; 350 349 … … 359 358 arrowX=stWidthI+bwX; 360 359 arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY; 361 arrowModel=' right';360 arrowModel='Right'; 362 361 break; 363 362 … … 367 366 arrowX=-bwX; 368 367 arrowY=stHeightI+bwY; 369 arrowModel=' down';368 arrowModel='Down'; 370 369 break; 371 370 … … 375 374 arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2+bwX; 376 375 arrowY=stHeightI+bwY; 377 arrowModel=' down';376 arrowModel='Down'; 378 377 break; 379 378 … … 383 382 arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX; 384 383 arrowY=stHeightI+bwY; 385 arrowModel=' down';384 arrowModel='Down'; 386 385 break; 387 386 } … … 389 388 if(items[itemIndex].options.drawArrow & arrowModel!='') 390 389 { 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 } 391 405 $('#iSimpleTipArrow'+options.name).css( 392 406 { 393 407 display: 'block', 394 background : 'url("'+items[itemIndex].options.arrowImgDir+'/arrow_'+arrowModel+'.png") no-repeat scroll 0 0 transparent',408 backgroundPosition: bgp, 395 409 marginLeft: arrowX+'px', 396 410 marginTop: arrowY+'px', … … 434 448 if($('#iSimpleTip'+options.name).length==0) 435 449 { 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><divid='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>"; 437 451 $('body').append(text); 438 452 } -
extensions/GrumPluginClasses/js/ui.categorySelector.js
r8961 r15340 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.categorySelector.js 4 * file version: 1.1. 05 * date: 201 1-01-124 * file version: 1.1.1 5 * date: 2012-05-25 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 40 40 * | | | * add 'displayPath' property 41 41 * | | | 42 * | 1.1.1 | 2012-05-25 | * fix bug with jquery 1.7.2 43 * | | | . display list now works :) 44 * | | | 45 * | | | 46 * | | | 42 47 * | | | 43 48 * … … 123 128 { 124 129 privateMethods.displaySelector($this, !$this.data('properties').selectorVisible); 125 $(this).focus();130 //$(this).focus(); // if get the focus, it hide the dorp-down list.. ? 126 131 } 127 132 ), … … 783 788 return(null); 784 789 } 785 } // numberOfCategories790 }, // numberOfCategories 786 791 }; // methods 787 792 … … 1618 1623 { 1619 1624 objects.listContainer.html('Error ! '+msg); 1620 } 1625 }, 1621 1626 } 1622 1627 ); -
extensions/GrumPluginClasses/js/ui.inputList.js
r8961 r15340 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputList.js 4 * file version: 1.0. 05 * date: 201 0-11-024 * file version: 1.0.1 5 * date: 2012-05-25 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 24 24 * | 1.0.0 | 2010/10/10 | first release 25 25 * | | | 26 * | | | 26 * | 1.0.1 | 2012/05/25 | fix bug with jquery 1.7.2 27 * | | | . display list now works :) 27 28 * | | | 28 29 * | | | … … 107 108 { 108 109 privateMethods.displaySelector($this, !$this.data('properties').selectorVisible); 109 $(this).focus();110 //$(this).focus(); // if get the focus, it hide the dorp-down list.. ? 110 111 } 111 112 ), … … 166 167 privateMethods.setOptions($this, opt); 167 168 168 if($this.text()!='') 169 if($this.text()!='') 169 170 { 170 171 var tmp=$.parseJSON($.trim($this.text())), … … 180 181 values=tmp.values; 181 182 } 182 183 183 184 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 188 189 } 189 190 … … 560 561 { 561 562 for(var i=0;i<properties.items.length;i++) 562 { 563 { 563 564 if($.inArray(i, properties.index)==-1) 564 565 returned.push(properties.items[i].value);
Note: See TracChangeset
for help on using the changeset viewer.