Ticket #19592: colorpicker.dev.js.diff
| File colorpicker.dev.js.diff, 1.7 KB (added by , 14 years ago) |
|---|
-
wp-includes/js/colorpicker.dev.js
60 60 // of the named anchor, relative to the page. 61 61 function getAnchorPosition(anchorname) { 62 62 // This function will return an Object with x and y properties 63 var useWindow=false;64 63 var coordinates=new Object(); 65 64 var x=0,y=0; 66 65 // Browser capability sniffing … … 350 349 // Pass an event and return whether or not it was the popup DIV that was clicked 351 350 function PopupWindow_isClicked(e) { 352 351 if (this.divName != null) { 352 var t; 353 353 if (this.use_layers) { 354 354 var clickX = e.pageX; 355 355 var clickY = e.pageY; 356 vart = document.layers[this.divName];356 t = document.layers[this.divName]; 357 357 if ((clickX > t.left) && (clickX < t.left+t.clip.width) && (clickY > t.top) && (clickY < t.top+t.clip.height)) { 358 358 return true; 359 359 } 360 360 else { return false; } 361 361 } 362 362 else if (document.all) { // Need to hard-code this to trap IE for error-handling 363 vart = window.event.srcElement;363 t = window.event.srcElement; 364 364 while (t.parentElement != null) { 365 365 if (t.id==this.divName) { 366 366 return true; … … 370 370 return false; 371 371 } 372 372 else if (this.use_gebi && e) { 373 vart = e.originalTarget;373 t = e.originalTarget; 374 374 while (t.parentNode != null) { 375 375 if (t.id==this.divName) { 376 376 return true; … … 580 580 var divname = arguments[0]; 581 581 } 582 582 583 var cp; 583 584 if (divname != "") { 584 varcp = new PopupWindow(divname);585 cp = new PopupWindow(divname); 585 586 } 586 587 else { 587 varcp = new PopupWindow();588 cp = new PopupWindow(); 588 589 cp.setSize(225,250); 589 590 } 590 591