Changeset 10845 for extensions/Autosize/js/conflit.js
- Timestamp:
- May 11, 2011, 12:13:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/conflit.js
r10787 r10845 65 65 var Fn; 66 66 function conflit(element, nc) { 67 if(typeof DEBUG != "boolean") DEBUG = false ; 68 //--- cl_conflit 67 //--- cl_conflit 69 68 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 70 69 ret_element = jQuery(element); … … 148 147 149 148 ret_element = jQuery(element); 150 if (DEBUG == "true") { 149 150 if (typeof DEBUG_autosize == "boolean" && DEBUG_autosize == "true") { 151 151 retour = (getStackTrace()); 152 152 alert("element : " + element + " retour : " + retour + "Fonctions:" + Fn); … … 165 165 jQuery(window).load(function () { 166 166 //============================================================ 167 if(jQuery("#check_auto_w").length>0){ 168 var cl_visible = jQuery("#check_auto_w").get(0).checked; 169 if (!cl_visible) { 170 jQuery("#table0 :text[name*='_width'] ").hide(); 171 } else { 172 jQuery("#table0 :text[name*='_width'] ").show(); 173 } 174 } 175 //============================================================== 176 jQuery("input").click(function () { 177 if (this.name.match(RegExp("_enabled", "gi"))) { 178 sel = "[name*=" + this.name + "]"; 179 obj = jQuery("tr" + sel); 180 181 if (this.checked) 182 obj.css({backgroundColor:"green",color:"white"}); 183 else 184 obj.css({backgroundColor: "red",color:"white"}); 185 186 return; 187 } 188 189 if (this.name != "check_auto_w") return; 190 191 cl_visible = this.checked 192 if (!cl_visible) { 193 jQuery("#table0 :text[name*='_width'] ").hide(); 194 } else { 195 jQuery("#table0 :text[name*='_width'] ").show(); 196 } 197 198 return; 199 200 201 202 203 }); 167 204 jQuery("#icon_gmaps").bind('click', function () { 168 205 //jQuery("#iGMapsIconContent").dialog("open"); 169 if (Version_pwg > '2.2.0' 170 return;206 if (Version_pwg > '2.2.0') 207 return; 171 208 jQuery('html,body').stop().scrollTop(0); 172 209 jQuery('html,body').stop().scrollLeft(0); … … 455 492 if (state == "") { 456 493 457 if ( DEBUG== "true") {494 if (typeof DEBUG_autosize == "boolean" && DEBUG_autosize == "true") { 458 495 Fn = all_functions.join('\n'); 459 496 try {
Note: See TracChangeset
for help on using the changeset viewer.