Changeset 12592 for extensions/gally/gally-default/js/gallyjs-tcp.js
- Timestamp:
- Nov 11, 2011, 12:10:02 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gally/gally-default/js/gallyjs-tcp.js
r8528 r12592 4 4 ------------------------------------------------------------------------------ 5 5 file: gally/gallyjs-tcp.js 6 file release: 1.4. 06 file release: 1.4.4 7 7 ------------------------------------------------------------------------------ 8 8 author: grum at piwigo.org … … 32 32 initContentDesc = function() 33 33 { 34 var tmpInfo=''; 35 34 36 if(($("#additional_infoTOP").length + $("#additional_infoBOTTOM").length)<2) 35 37 { … … 70 72 71 73 // <!--up-down--> tag 72 txt = $("#additional_infoLEFT"). attr("innerHTML");74 txt = $("#additional_infoLEFT").prop("innerHTML"); 73 75 if(txt==null) { txt=""; } 74 76 tmp = txt.indexOf("<!--up-down-->"); … … 76 78 if(tmp>-1) 77 79 { // tag is not managed by the ExtendedDescription plugin 78 $("#additional_infoTOP"). attr("innerHTML", txt.slice(0,tmp));80 $("#additional_infoTOP").prop("innerHTML", txt.slice(0,tmp)); 79 81 txt=txt.substr(tmp+14); //remove the tag 80 82 } … … 85 87 if(this.id=="") 86 88 { 87 $("#additional_infoTOP"). attr("innerHTML", $("#additional_infoTOP").attr("innerHTML")+this.innerHTML);89 $("#additional_infoTOP").prop("innerHTML", $("#additional_infoTOP").prop("innerHTML")+this.innerHTML); 88 90 this.parentNode.removeChild(this); 89 91 } … … 97 99 if(tmp>-1) 98 100 { // tag is present, cut the right text to the 99 $("#additional_infoBOTTOM"). attr("innerHTML", txt.slice(0,tmp));101 $("#additional_infoBOTTOM").prop("innerHTML", txt.slice(0,tmp)); 100 102 txt=txt.substr(tmp+17); 101 103 } 102 104 103 $("#additional_infoLEFT"). attr("innerHTML", txt);105 $("#additional_infoLEFT").prop("innerHTML", txt); 104 106 105 107 if((txt.replace(/\s*/im, "")=="")&&($("#additional_infoID").length>0)) … … 110 112 $(".additional_info").css("visibility", "visible"); 111 113 112 if($("#additional_infoBOTTOM").attr("innerHTML").replace(/\s*/im, "")=="") 114 tmpInfo=$("#additional_infoBOTTOM").prop("innerHTML"); 115 if(tmpInfo==null) tmpInfo=''; 116 117 if(tmpInfo.replace(/\s*/im, "")=="") 113 118 { 114 119 // remove the bottom area if empty … … 120 125 } 121 126 122 if($("#additional_infoTOP").attr("innerHTML").replace(/\s*/im, "")=="") 127 tmpInfo=$("#additional_infoTOP").prop("innerHTML"); 128 if(tmpInfo==null) tmpInfo=''; 129 if(tmpInfo.replace(/\s*/im, "")=="") 123 130 { 124 131 // remove the top area if empty … … 138 145 { 139 146 visibility:"hidden", 140 top: $("#titrePageID"). attr("offsetTop")+$("#titrePageID").attr("offsetHeight")-2+'px'147 top: $("#titrePageID").prop("offsetTop")+$("#titrePageID").prop("offsetHeight")-2+'px' 141 148 } 142 149 ); … … 167 174 function (index, elem) 168 175 { 169 //alert($(this.parentNode). attr('offsetWidth')+"---"+$(this.parentNode).attr('id'));170 $(this).css("min-width", $(this.parentNode). attr('offsetWidth'));176 //alert($(this.parentNode).prop('offsetWidth')+"---"+$(this.parentNode).prop('id')); 177 $(this).css("min-width", $(this.parentNode).prop('offsetWidth')); 171 178 if(jQuery.browser.msie) 172 179 { … … 194 201 height:"auto" 195 202 }).fadeTo(options.animateDelay,1); 196 $("#icon_menu"). attr("className", "button2");203 $("#icon_menu").toggleClass("button button2"); 197 204 menuState=true; 198 205 break; … … 204 211 }); 205 212 }); 206 $("#icon_menu"). attr("className", "button");213 $("#icon_menu").toggleClass("button button2"); 207 214 menuState=false; 208 215 } … … 217 224 height:"auto" 218 225 }); 219 $("#icon_menu"). attr("className", "button2");226 $("#icon_menu").toggleClass("button button2"); 220 227 menuState=true; 221 228 break; … … 225 232 height:"0px" 226 233 }); 227 $("#icon_menu"). attr("className", "button");234 $("#icon_menu").toggleClass("button button2"); 228 235 menuState=false; 229 236 }
Note: See TracChangeset
for help on using the changeset viewer.