Changeset 16012 for extensions/GrumPluginClasses/js
- Timestamp:
- Jun 24, 2012, 9:18:26 PM (12 years ago)
- Location:
- extensions/GrumPluginClasses/js
- Files:
-
- 7 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/js/rbCriteriaBuilder.js
r10884 r16012 109 109 helpMove:'', 110 110 helpSwitchCondition:'', 111 ajaxUrl:'' 111 ajaxUrl:'', 112 token:'' 112 113 }, 113 114 extraData = new Array(); … … 590 591 } 591 592 592 var datas=encodeURI('ajaxfct=public.rbuilder.searchExecute& requestName='+itemsId.container+'&'+getItems());593 var datas=encodeURI('ajaxfct=public.rbuilder.searchExecute&token='+options.token+'&requestName='+itemsId.container+'&'+getItems()); 593 594 $.ajax( 594 595 { … … 621 622 url: options.ajaxUrl, 622 623 async: true, 623 data: {ajaxfct:'public.rbuilder.searchGetPage', page:pageNumber, requestNumber:requestNumber, numPerPage:numberPerPage}, 624 data: { 625 ajaxfct:'public.rbuilder.searchGetPage', 626 page:pageNumber, 627 requestNumber:requestNumber, 628 numPerPage:numberPerPage, 629 token:options.token 630 }, 624 631 success: function(msg) 625 632 { -
extensions/GrumPluginClasses/js/rbSearch.js
r10884 r16012 52 52 requestResultRequestNumber:0, 53 53 onPageChange:null, 54 numberPerPage:30 54 numberPerPage:30, 55 token:'' 55 56 }; 56 57 … … 245 246 url: "plugins/GrumPluginClasses/gpc_ajax.php", 246 247 async: true, 247 data: { ajaxfct:"admin.rbuilder.fillCaddie", fillMode:mode, requestNumber:requestNumber }, 248 data: { 249 ajaxfct:"admin.rbuilder.fillCaddie", 250 fillMode:mode, 251 requestNumber:requestNumber, 252 token:options.token 253 }, 248 254 success: 249 255 function(msg) -
extensions/GrumPluginClasses/js/simpleTip.js
r15340 r16012 391 391 { 392 392 case 'Up': 393 bgp=' -'+items[itemIndex].options.arrowHeight+'px 0px';393 bgp='0px -'+items[itemIndex].options.arrowHeight+'px'; 394 394 break; 395 395 case 'Left': 396 bgp=' 0px -'+items[itemIndex].options.arrowWeight+'px';396 bgp='-'+items[itemIndex].options.arrowWidth+'px 0px'; 397 397 break; 398 398 case 'Down': … … 400 400 break; 401 401 case 'Right': 402 bgp='-'+items[itemIndex].options.arrowHeight+'px -'+items[itemIndex].options.arrowW eight+'px';402 bgp='-'+items[itemIndex].options.arrowHeight+'px -'+items[itemIndex].options.arrowWidth+'px'; 403 403 break; 404 404 } -
extensions/GrumPluginClasses/js/ui.categorySelector.js
r15340 r16012 3 3 * file: ui.categorySelector.js 4 4 * file version: 1.1.1 5 * date: 2012-0 5-255 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 40 39 * | | | * add 'displayPath' property 41 40 * | | | 42 * | 1.1.1 | 2012-0 5-25| * fix bug with jquery 1.7.241 * | 1.1.1 | 2012-06-18 | * fix bug with jquery 1.7.2 43 42 * | | | . display list now works :) 44 43 * | | | 44 * | | | * improve memory managment 45 45 * | | | 46 46 * | | | … … 65 65 // default values for the plugin 66 66 var $this=$(this), 67 timeStamp=new Date(), 67 68 data = $this.data('options'), 68 69 objects = $this.data('objects'), … … 79 80 iconWidthEC:15, 80 81 serverUrl:'plugins/GrumPluginClasses/gpc_ajax.php', 82 postData:{}, 81 83 filter:'accessible', 82 84 popup:null, … … 87 89 popupMode:'click', 88 90 displayPath:false, 89 downArrow:' ⇓'91 downArrow:'' //'⇓' 90 92 }; 91 93 … … 100 102 $this.data('properties', 101 103 { 104 objectId:'cs'+Math.ceil(timeStamp.getTime()*Math.random()), 102 105 index:-1, 103 106 initialized:false, … … 142 145 'class':'ui-category-selector-status', 143 146 css: { 144 float:'right',147 'float':'right', 145 148 display:(options.displayStatus)?'block':'none' 146 149 } … … 213 216 var $this=$(this), 214 217 objects = $this.data('objects'); 218 objects.containerName.unbind().remove(); 219 objects.containerList.unbind().remove(); 220 objects.containerStatus.unbind().remove(); 221 objects.containerArrow.unbind().remove(); 215 222 objects.container.unbind().remove(); 216 223 objects.list.children().unbind(); 217 224 objects.listContainer.remove(); 225 $(document).unbind('focusout.'+properties.objectId+' focusin.'+properties.objectId); 218 226 $this 227 .removeData() 219 228 .unbind('.categorySelector') 220 229 .css( … … 224 233 } 225 234 ); 235 delete $this; 226 236 } 227 237 ); … … 412 422 } 413 423 }, // serverUrl 424 425 postData: function (value) 426 { 427 if(value!=null) 428 { 429 // set selected value 430 return( 431 this.each( 432 function() 433 { 434 privateMethods.setPostData($(this), value, true); 435 } 436 ) 437 ); 438 } 439 else 440 { 441 var options=this.data('options'); 442 return(options.postData); 443 } 444 }, // postData 414 445 415 446 filter: function (value) … … 813 844 privateMethods.setLevelIndent(object, (value.levelIndent!=null)?value.levelIndent:options.levelIndent); 814 845 privateMethods.setIconWidthEC(object, (value.iconWidthEC!=null)?value.iconWidthEC:options.iconWidthEC); 846 privateMethods.setPostData(object, (value.postData!=null)?value.postData:options.postData); 815 847 privateMethods.setServerUrl(object, (value.serverUrl!=null)?value.serverUrl:options.serverUrl); 816 848 privateMethods.setFilter(object, (value.filter!=null)?value.filter:options.filter); … … 968 1000 return(options.serverUrl); 969 1001 }, 1002 1003 setPostData : function (object, value) 1004 { 1005 var properties=object.data('properties'), 1006 options=object.data('options'); 1007 1008 if(!properties.initialized || value!=options.postData) 1009 { 1010 options.postData=value; 1011 } 1012 1013 return(options.postData); 1014 }, // setPostData 970 1015 971 1016 setFilter : function (object, value) … … 1094 1139 } 1095 1140 ); 1096 $(document).bind('focusout focusin',1141 $(document).bind('focusout.'+properties.objectId+' focusin.'+properties.objectId, 1097 1142 function (event) 1098 1143 { … … 1614 1659 filter:options.filter, 1615 1660 galleryRoot:options.galleryRoot?'y':'n', 1616 tree:'y' 1661 tree:'y', 1662 data:options.postData 1617 1663 }, 1618 1664 success: function(msg) -
extensions/GrumPluginClasses/js/ui.iconSelector.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.iconSelector.js 4 * file version: 1.0. 05 * date: 201 0-10-104 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 87 86 * | 1.0.0 | 2010/10/10 | first release 88 87 * | | | 88 * | 1.0.1 | 2012/06/18 | * imoprove memory managment 89 89 * | | | 90 90 * | | | … … 220 220 $this 221 221 .unbind('.iconSelector') 222 .removeData() 222 223 .css( 223 224 { … … 227 228 } 228 229 ); 230 delete $this; 229 231 } 230 232 ); -
extensions/GrumPluginClasses/js/ui.inputCheckbox.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputCheckbox.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 22 21 * 23 22 * | release | date | 24 * | 1.0.0 | 2010/11/04 | first release23 * | 1.0.0 | 2010/11/04 | * first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 53 52 properties = $this.data('properties'), 54 53 options = 55 { 54 { 56 55 values: 57 56 { … … 111 110 { 112 111 // default values for the plugin 113 var properties=this.data('properties'); 112 var $this=$(this), 113 properties=$this.data('properties'); 114 114 properties.checkboxList.unbind('.inputCheckbox'); 115 this.removeClass('ui-inputCheckbox'); 115 116 $this 117 .unbind('.inputCheckbox') 118 .removeData() 119 .removeClass('ui-inputCheckbox'); 120 delete $this; 116 121 } 117 122 ); … … 416 421 break; 417 422 } 418 } 423 } 419 424 else if($.isArray(value) && !properties.isCB) 420 425 { … … 425 430 */ 426 431 properties.checkboxList.attr('checked', false); 427 432 428 433 for(var i=0;i<value.length;i++) 429 434 { … … 437 442 } 438 443 } 439 440 } 441 else 444 445 } 446 else 442 447 { 443 448 // a single value 444 449 445 450 if(options.values.checked==value) 446 451 { … … 453 458 if(id=='') 454 459 { 455 properties.checkboxList.attr('checked', true); 460 properties.checkboxList.attr('checked', true); 456 461 } 457 462 else … … 471 476 if(id=='') 472 477 { 473 properties.checkboxList.attr('checked', false); 478 properties.checkboxList.attr('checked', false); 474 479 } 475 480 else -
extensions/GrumPluginClasses/js/ui.inputColorPicker.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputColorPicker.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 22 21 * 23 22 * | release | date | 24 * | 1.0.0 | 2010/11/04 | first release23 * | 1.0.0 | 2010/11/04 | * first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 201 200 numDec:0, 202 201 unitValue:'', 203 btInc:'+',204 btDec:'-',202 //btInc:'+', 203 //btDec:'-', 205 204 value:0, 206 205 showSlider:'auto', … … 218 217 numDec:0, 219 218 unitValue:'', 220 btInc:'+',221 btDec:'-',219 //btInc:'+', 220 //btDec:'-', 222 221 value:0, 223 222 showSlider:'auto', … … 235 234 numDec:0, 236 235 unitValue:'', 237 btInc:'+',238 btDec:'-',236 //btInc:'+', 237 //btDec:'-', 239 238 value:0, 240 239 showSlider:'auto', … … 252 251 numDec:0, 253 252 unitValue:'', 254 btInc:'+',255 btDec:'-',253 //btInc:'+', 254 //btDec:'-', 256 255 value:0, 257 256 showSlider:'auto', … … 269 268 numDec:0, 270 269 unitValue:'', 271 btInc:'+',272 btDec:'-',270 //btInc:'+', 271 //btDec:'-', 273 272 value:0, 274 273 showSlider:'auto', … … 286 285 numDec:0, 287 286 unitValue:'', 288 btInc:'+',289 btDec:'-',287 //btInc:'+', 288 //btDec:'-', 290 289 value:0, 291 290 showSlider:'auto', … … 303 302 numDec:0, 304 303 unitValue:'', 305 btInc:'+',306 btDec:'-',304 //btInc:'+', 305 //btDec:'-', 307 306 value:0, 308 307 showSlider:'auto', … … 373 372 objects.inputContainer.remove(); 374 373 objects.container.remove(); 374 375 $this 376 .unbind() 377 .removeData(); 378 379 delete $this; 375 380 } 376 381 ); … … 1115 1120 { 1116 1121 objects.colorPicker.inputColorPicker('destroy').remove(); 1117 $(this).dialog('destroy') ;1122 $(this).dialog('destroy').remove(); 1118 1123 } 1119 1124 }; … … 1121 1126 if(options.modal) 1122 1127 { 1123 dialogOpt.buttons= 1124 { 1125 'ok' : function (event) 1126 { 1127 if(options.change) 1128 { 1129 if(options.mode==1) 1130 { 1131 options.change(event, objects.colorPicker.inputColorPicker('colors').fg ); 1132 } 1133 else 1134 { 1135 options.change(event, objects.colorPicker.inputColorPicker('colors') ); 1136 } 1137 } 1138 $(this).dialog('close'); 1139 }, 1140 'cancel' : function (event) 1141 { 1142 $(this).dialog('close'); 1143 } 1128 dialogOpt.buttons[options.buttons.ok]=function (event) 1129 { 1130 if(options.change) 1131 { 1132 if(options.mode==1) 1133 { 1134 options.change(event, objects.colorPicker.inputColorPicker('colors').fg ); 1135 } 1136 else 1137 { 1138 options.change(event, objects.colorPicker.inputColorPicker('colors') ); 1139 } 1140 } 1141 $(this).dialog('close'); 1144 1142 }; 1143 1144 dialogOpt.buttons[options.buttons.cancel]=function (event) 1145 { 1146 $(this).dialog('close'); 1147 }; 1148 1145 1149 dialogOpt.open= function () 1146 1150 { -
extensions/GrumPluginClasses/js/ui.inputColorsFB.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputColorsFB.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/11/04 | first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 155 154 var $this=$(this), 156 155 objects = $this.data('objects'); 157 objects.dot.remove(); 156 objects.fg.remove(); 157 objects.bg.remove(); 158 objects.fgopacity.remove(); 159 objects.bgopacity.remove(); 158 160 objects.container.unbind().remove(); 159 161 $this 160 162 .unbind('.inputColorsFB') 163 .removeData() 161 164 .css( 162 165 { … … 165 168 } 166 169 ); 170 delete $this; 167 171 } 168 172 ); -
extensions/GrumPluginClasses/js/ui.inputConsole.js
r12215 r16012 3 3 * file: ui.inputConsole.js 4 4 * file version: 1.0.1 5 * date: 201 0-11-055 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/10/10 | first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 207 206 objects = $this.data('objects'); 208 207 objects.input.unbind().remove(); 208 objects.prompt.unbind().remove(); 209 objects.inputContainer.unbind().remove(); 210 objects.historyList.unbind().remove(); 211 objects.historyListContainer.unbind().remove(); 212 objects.historyBackground.unbind().remove(); 213 objects.historyContainer.unbind().remove(); 209 214 objects.container.unbind().remove(); 210 215 $this 211 216 .unbind('.inputConsole') 217 .removeData() 212 218 .css( 213 219 { … … 216 222 } 217 223 ); 224 delete $this; 218 225 } 219 226 ); -
extensions/GrumPluginClasses/js/ui.inputDotArea.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputDotArea.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/11/04 | first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 149 148 $this 150 149 .unbind('.inputDotArea') 150 .removeData() 151 151 .css( 152 152 { … … 155 155 } 156 156 ); 157 delete $this; 157 158 } 158 159 ); -
extensions/GrumPluginClasses/js/ui.inputList.js
r15340 r16012 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/10/10 | first release 25 24 * | | | 26 * | 1.0.1 | 2012/0 5/25 |fix bug with jquery 1.7.227 * | | | . display list now works :)25 * | 1.0.1 | 2012/06/18 | * fix bug with jquery 1.7.2 26 * | | | . display list now works :) 28 27 * | | | 28 * | | | * improve memory managment 29 29 * | | | 30 30 * | | | … … 49 49 // default values for the plugin 50 50 var $this=$(this), 51 timeStamp=new Date(), 51 52 data = $this.data('options'), 52 53 objects = $this.data('objects'), … … 55 56 { 56 57 serverUrl:'', 58 postData:{}, 57 59 autoLoad:true, 58 60 listMaxWidth:0, 59 61 listMaxHeight:0, 60 62 multiple:false, 61 downArrow:' ⇓',63 downArrow:'', //⇓ 62 64 popupMode:'click', 63 65 colsWidth:[], … … 80 82 $this.data('properties', 81 83 { 84 objectId:'il'+Math.ceil(timeStamp.getTime()*Math.random()), 82 85 index:-1, 83 86 initialized:false, … … 204 207 // default values for the plugin 205 208 var $this=$(this), 209 properties = $this.data('properties'), 206 210 objects = $this.data('objects'); 207 211 objects.container.unbind().remove(); 208 212 objects.list.children().unbind(); 209 objects.listContainer.remove(); 213 objects.listContainer.unbind().remove(); 214 $(document).unbind('focusout.'+properties.objectId+' focusin.'+properties.objectId); 210 215 $this 216 .removeData() 211 217 .unbind('.inputList') 212 218 .css( … … 216 222 } 217 223 ); 224 delete $this; 218 225 } 219 226 ); … … 328 335 } 329 336 }, // serverUrl 337 338 postData: function (value) 339 { 340 if(value!=null) 341 { 342 // set selected value 343 return( 344 this.each( 345 function() 346 { 347 privateMethods.setPostData($(this), value, true); 348 } 349 ) 350 ); 351 } 352 else 353 { 354 var options=this.data('options'); 355 return(options.postData); 356 } 357 }, // postData 330 358 331 359 cols: function () … … 747 775 privateMethods.setListMaxWidth(object, (value.listMaxWidth!=null)?value.listMaxWidth:options.listMaxWidth); 748 776 privateMethods.setListMaxHeight(object, (value.listMaxHeight!=null)?value.listMaxHeight:options.listMaxHeight); 777 privateMethods.setPostData(object, (value.postData!=null)?value.postData:options.postData); 749 778 privateMethods.setServerUrl(object, (value.serverUrl!=null)?value.serverUrl:options.serverUrl); 750 779 privateMethods.setPopupMode(object, (value.popupMode!=null)?value.popupMode:options.popupMode); … … 759 788 privateMethods.setMultiple(object, (value.multiple!=null)?value.multiple:options.multiple); // can be set only at the initialization 760 789 761 if(options.autoLoad) privateMethods.load(object); 790 if(options.autoLoad && options.serverUrl!='') 791 { 792 privateMethods.load(object, (value.value!=null)?value.value:null); 793 } 794 else 795 { 796 privateMethods.setValue(object, (value.value!=null)?value.value:null); 797 } 762 798 763 799 properties.initialized=true; … … 899 935 return(options.serverUrl); 900 936 }, 937 938 setPostData : function (object, value) 939 { 940 var properties=object.data('properties'), 941 options=object.data('options'); 942 943 if(!properties.initialized || value!=options.postData) 944 { 945 options.postData=value; 946 } 947 948 return(options.postData); 949 }, // setPostData 901 950 902 951 setMultiple : function (object, value) … … 974 1023 } 975 1024 ); 976 $(document).bind('focusout focusin',977 function (event)978 {979 if(!properties.mouseOver) privateMethods.displaySelector(object, false);980 event.stopPropagation();981 }1025 $(document).bind('focusout.'+properties.objectId+' focusin.'+properties.objectId, 1026 function (event) 1027 { 1028 if($.isPlainObject(properties) && !properties.mouseOver) privateMethods.displaySelector(object, false); 1029 event.stopPropagation(); 1030 } 982 1031 ); 983 1032 } … … 1297 1346 }, 1298 1347 1299 load : function (object )1348 load : function (object, defaultValue) 1300 1349 { 1301 1350 // load datas from server through an asynchronous ajax call … … 1310 1359 type: "POST", 1311 1360 url: options.serverUrl, 1361 data:options.postData, 1312 1362 async: true, 1313 1363 success: function(msg) … … 1318 1368 if(options.multiple) 1319 1369 { 1320 privateMethods.setValue(object, ':none'); 1370 if(defaultValue!=null) 1371 { 1372 privateMethods.setValue(object, defaultValue); 1373 } 1374 else 1375 { 1376 privateMethods.setValue(object, ':none'); 1377 } 1321 1378 } 1322 1379 else 1323 1380 { 1324 privateMethods.setValue(object, ':first'); 1381 if(defaultValue!=null) 1382 { 1383 privateMethods.setValue(object, defaultValue); 1384 } 1385 else 1386 { 1387 privateMethods.setValue(object, ':first'); 1388 } 1325 1389 } 1326 1390 properties.initialized=true; -
extensions/GrumPluginClasses/js/ui.inputNum.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputNum.js 4 * file version: 1.0. 05 * date: 201 0-11-024 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/10/10 | first release 25 24 * | | | 25 * | 1.0.1 | 2012/06/18 | * improve memory managment 26 26 * | | | 27 27 * | | | … … 60 60 disabled:false, 61 61 textAlign:'right', 62 btInc:' +',63 btDec:' -',62 btInc:'', // + 63 btDec:'', // - 64 64 unitValue:'', 65 65 change:null … … 226 226 $this 227 227 .unbind('.inputNum') 228 .removeData() 228 229 .css( 229 230 { … … 232 233 } 233 234 ); 235 delete $this; 234 236 } 235 237 ); … … 647 649 var objects=object.data('objects'), 648 650 properties=object.data('properties'); 651 652 if(value=='check') 653 value=privateMethods.isValid(object, properties.value); 649 654 650 655 if(properties.isValid!=value) … … 1043 1048 { 1044 1049 var objects=object.data('objects'), 1045 properties=object.data('properties'); 1046 1050 properties=object.data('properties'); 1051 1047 1052 objects.input.css('width', (objects.container.width()-objects.extraContainer.outerWidth()-properties.inputMargins)+'px'); 1048 1053 } -
extensions/GrumPluginClasses/js/ui.inputPosition.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputPosition.js 4 * file version: 1.0. 05 * date: 201 0-11-054 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/10/10 | first release 25 24 * | | | 25 * | 1.0.1 | 2012/06/18 | * improve memory managment 26 26 * | | | 27 27 * | | | … … 183 183 $this 184 184 .unbind('.inputPosition') 185 .removeData() 185 186 .css( 186 187 { … … 189 190 } 190 191 ); 192 delete $this; 191 193 } 192 194 ); -
extensions/GrumPluginClasses/js/ui.inputRadio.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputRadio.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/11/04 | first release 25 24 * | | | 25 * | 1.0.1 | 2012/06/18 | * improve memory managment 26 26 * | | | 27 27 * | | | … … 119 119 $this 120 120 .unbind('.inputRadio') 121 .removeData() 121 122 .css( 122 123 { … … 125 126 } 126 127 ); 128 delete $this; 127 129 } 128 130 ); -
extensions/GrumPluginClasses/js/ui.inputStatusBar.js
r8961 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputStatusBar.js 4 * file version: 1.0. 05 * date: 201 0-11-044 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2010/11/04 | first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 115 114 var $this=$(this), 116 115 objects = $this.data('objects'); 116 117 117 objects.tr.remove(); 118 118 objects.table.remove(); 119 119 $this 120 120 .unbind('.inputStatusBar') 121 .removeData() 121 122 .css( 122 123 { … … 125 126 } 126 127 ); 128 delete $this; 127 129 } 128 130 ); -
extensions/GrumPluginClasses/js/ui.inputSwitchButton.js
r12215 r16012 1 1 /** 2 2 * ----------------------------------------------------------------------------- 3 * file: ui.input Checkbox.js4 * file version: 1.0. 05 * date: 201 1-06-183 * file: ui.inputSwitchButton.js 4 * file version: 1.0.1 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 24 23 * | 1.0.0 | 2011/06/18 | first release 25 24 * | | | 26 * | | |25 * | 1.0.1 | 2012/06/18 | * improve memory managment 27 26 * | | | 28 27 * | | | … … 53 52 properties = $this.data('properties'), 54 53 options = 55 { 54 { 56 55 values: 57 56 { … … 99 98 { 100 99 // default values for the plugin 101 var properties=this.data('properties'); 102 $this.unbind('.inputSwitchButton'); 103 this.removeClass('ui-inputSwitchButton'); 100 var $this=$(this); 101 102 $this 103 .unbind('.inputSwitchButton') 104 .removeData() 105 .removeClass('ui-inputSwitchButton ui-inputSwitchButton-unchecked ui-inputSwitchButton-checked'); 106 delete $this; 104 107 } 105 108 ); … … 136 139 } 137 140 }, // disabled 138 141 139 142 values: function (values) 140 143 { … … 191 194 { 192 195 var options = this.data('options'); 193 196 194 197 return(properties.checked?options.values.checked:options.values.unchecked); 195 198 } … … 283 286 return(options.values); 284 287 }, //setValues 285 286 288 289 287 290 setGroup: function (object, value) 288 291 { … … 298 301 if(listGroup==null) listGroup=[]; 299 302 p=$.inArray(object.attr('id'), listGroup); 300 if(p>-1) listGroup.splice(p,1); 303 if(p>-1) listGroup.splice(p,1); 301 304 $(document).data('isbGroup_'+options.group, listGroup); 302 } 305 } 303 306 options.group=value; 304 307 listGroup=$(document).data('isbGroup_'+value); … … 307 310 $(document).data('isbGroup_'+value, listGroup); 308 311 } 309 }, 310 312 }, 313 311 314 switchValue: function (object) 312 315 { … … 340 343 } 341 344 } 342 345 343 346 object 344 347 .addClass('ui-inputSwitchButton-checked') -
extensions/GrumPluginClasses/js/ui.inputText.js
r15373 r16012 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputText.js 4 * file version: 1.1. 15 * date: 201 1-01-094 * file version: 1.1.2 5 * date: 2012-06-18 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 11 11 * email : grum@piwigo.com 12 12 * website : http://photos.grum.fr 13 * PWG user : http://forum.phpwebgallery.net/profile.php?id=370614 13 * 15 14 * << May the Little SpaceFrog be with you ! >> … … 31 30 * | 1.1.1 | 2011/01/31 | * add function ':clear' for 'languagesValues' method 32 31 * | | | 32 * | 1.1.2 | 2012/06/18 | * improve memory managment 33 33 * | | | 34 * | | | 34 * | | | * fix bug on regExp option 35 35 * | | | 36 36 * | | | … … 139 139 $this 140 140 .unbind('.inputText') 141 .removeData() 141 142 .css( 142 143 { … … 145 146 } 146 147 ); 148 delete $this; 147 149 } 148 150 ); … … 539 541 var properties=object.data('properties'); 540 542 541 return(properties.re. exec(value))543 return(properties.re.test(value)); 542 544 }, 543 545 … … 570 572 privateMethods.setTextAlign(object, (value.textAlign!=null)?value.textAlign:options.textAlign); 571 573 574 privateMethods.setDisabled(object, (value.disabled!=null)?value.disabled:options.disabled); 575 572 576 privateMethods.setEventChange(object, (value.change!=null)?value.change:options.change); 573 577 … … 598 602 var objects=object.data('objects'), 599 603 properties=object.data('properties'); 604 605 if(value=='check') 606 value=privateMethods.isValid(object, properties.value); 600 607 601 608 if(properties.isValid!=value && properties.initialized) … … 892 899 } 893 900 894 privateMethods.setIsValid(object, true);901 privateMethods.setIsValid(object, privateMethods.isValid(object, value)); 895 902 896 903 properties.value=value;
Note: See TracChangeset
for help on using the changeset viewer.