Changeset 9809
- Timestamp:
- 11/20/2008 10:54:59 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r9702 r9809 29 29 //<![CDATA[ 30 30 addLoadEvent = function(func) {if (typeof jQuery != "undefined") jQuery(document).ready(func); else if (typeof wpOnload!='function'){wpOnload=func;} else {var oldonload=wpOnload; wpOnload=function(){oldonload();func();}}}; 31 32 function convertEntities(o) { 33 var p = document.createElement('p'); 34 var c = function(s) { p.innerHTML = s; return p.innerHTML; } 35 36 if ( typeof o === 'object' ) 37 for (var v in o) 38 o[v] = c(o[v]); 39 40 else if ( typeof o === 'string' ) 41 return c(o); 42 43 p = null; 44 }; 31 45 //]]> 32 46 </script> -
trunk/wp-admin/js/common.js
r9784 r9809 216 216 217 217 var showNotice, adminMenu, columns; 218 (function($){ 218 219 219 // stub for doing better warnings 220 220 showNotice = { … … 230 230 } 231 231 }; 232 })(jQuery);233 232 234 233 (function($){ … … 351 350 352 351 })(jQuery); 353 354 355 352 /* 356 353 (function($) { 357 $.fn.tTips = function() { 358 359 $('body').append('<div id="tTips"><p id="tTips_inside"></p></div>'); 360 var TT = $('#tTips'); 361 362 this.each(function() { 363 var el = $(this), txt; 364 365 if ( txt = el.attr('title') ) el.attr('tip', txt).removeAttr('title'); 366 else return; 367 el.find('img').removeAttr('alt'); 368 369 el.mouseover(function(e) { 370 txt = el.attr('tip'), o = el.offset(); 371 372 clearTimeout(TT.sD); 373 TT.find('p').html(txt); 374 375 TT.css({'top': o.top - 43, 'left': o.left - 5}); 376 TT.sD = setTimeout(function(){TT.fadeIn(150);}, 100); 377 }); 378 379 el.mouseout(function() { 380 clearTimeout(TT.sD); 381 TT.css({display : 'none'}); 382 }) 383 }); 384 } 385 }(jQuery)); 354 $.attrEn = function(elem, name, value) { 355 if ( typeof value === 'string' ) 356 value = $('<span>'+value+'</span>').html(); 357 return $.attr(elem, name, value); 358 } 359 $.fn.valEn = function(value) { 360 if ( typeof value === 'string' ) 361 value = $('<span>'+value+'</span>').html(); 362 return $.fn.val.call(this, value); 363 } 364 })(jQuery); 386 365 */ 387 388 //jQuery(function(){jQuery('#media-buttons a').tTips();}); -
trunk/wp-includes/class.wp-scripts.php
r9002 r9809 52 52 } 53 53 echo "\n\t}\n"; 54 echo "try{convertEntities($object_name);}catch(e){};\n"; 54 55 echo "/* ]]> */\n"; 55 56 echo "</script>\n";
Note: See TracChangeset
for help on using the changeset viewer.