<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[17639] trunk: Remove redundant IE restore selection calls for TinyMCE,
  see #17136</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17639">17639</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-04-15 04:20:12 +0000 (Fri, 15 Apr 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove redundant IE restore selection calls for TinyMCE, see <a href="http://trac.wordpress.org/ticket/17136">#17136</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjsgallerydevjs">trunk/wp-admin/js/gallery.dev.js</a></li>
<li><a href="#trunkwpadminjsgalleryjs">trunk/wp-admin/js/gallery.js</a></li>
<li><a href="#trunkwpadminjsmediauploaddevjs">trunk/wp-admin/js/media-upload.dev.js</a></li>
<li><a href="#trunkwpadminjsmediauploadjs">trunk/wp-admin/js/media-upload.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjsgallerydevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/gallery.dev.js (17638 => 17639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/gallery.dev.js        2011-04-14 18:05:30 UTC (rev 17638)
+++ trunk/wp-admin/js/gallery.dev.js        2011-04-15 04:20:12 UTC (rev 17639)
</span><span class="lines">@@ -110,18 +110,10 @@
</span><span class="cx">                 return window.dialogArguments || opener || parent || top;
</span><span class="cx">         },
</span><span class="cx"> 
</span><del>-        restoreSelection : function() {
-                var t = this;
-
-                if (tinymce.isIE)
-                        t.editor.selection.moveToBookmark(t.editor.windowManager.bookmark);
-        },
-
</del><span class="cx">         setup : function() {
</span><span class="cx">                 var t = this, a, ed = t.editor, g, columns, link, order, orderby;
</span><span class="cx">                 if ( ! t.mcemode ) return;
</span><span class="cx"> 
</span><del>-                t.restoreSelection();
</del><span class="cx">                 t.el = ed.selection.getNode();
</span><span class="cx"> 
</span><span class="cx">                 if ( t.el.nodeName != 'IMG' || ! ed.dom.hasClass(t.el, 'wpGallery') ) {
</span></span></pre></div>
<a id="trunkwpadminjsgalleryjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/gallery.js (17638 => 17639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/gallery.js        2011-04-14 18:05:30 UTC (rev 17638)
+++ trunk/wp-admin/js/gallery.js        2011-04-15 04:20:12 UTC (rev 17639)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(c){var b,e,a,d=false;e=function(){b=c(&quot;#media-items&quot;).sortable({items:&quot;div.media-item&quot;,placeholder:&quot;sorthelper&quot;,axis:&quot;y&quot;,distance:2,handle:&quot;div.filename&quot;,stop:function(i,h){var g=c(&quot;#media-items&quot;).sortable(&quot;toArray&quot;),f=g.length;c.each(g,function(k,l){var j=d?(f-k):(1+k);c(&quot;#&quot;+l+&quot; .menu_order input&quot;).val(j)})}})};sortIt=function(){var g=c(&quot;.menu_order_input&quot;),f=g.length;g.each(function(j){var h=d?(f-j):(1+j);c(this).val(h)})};clearAll=function(f){f=f||0;c(&quot;.menu_order_input&quot;).each(function(){if(this.value==&quot;0&quot;||f){this.value=&quot;&quot;}})};c(&quot;#asc&quot;).click(function(){d=false;sortIt();return false});c(&quot;#desc&quot;).click(function(){d=true;sortIt();return false});c(&quot;#clear&quot;).click(function(){clearAll(1);return false});c(&quot;#showall&quot;).click(function(){c(&quot;#sort-buttons span a&quot;).toggle();c(&quot;a.describe-toggle-on&quot;).hide();c(&quot;a.describe-toggle-off, table.slidetoggle&quot;).show();return false});c(&quot;#hideall&quot;).click(function(){c(&quot;#sort-buttons span a&quot;).toggle();c(&quot;a.describe-toggle-on&quot;).show();c(&quot;a.describe-toggle-off, table.slidetoggle&quot;).hide();return false});e();clearAll();if(c(&quot;#media-items&gt;*&quot;).length&gt;1){a=wpgallery.getWin();c(&quot;#save-all, #gallery-settings&quot;).show();if(typeof a.tinyMCE!=&quot;undefined&quot;&amp;&amp;a.tinyMCE.activeEditor&amp;&amp;!a.tinyMCE.activeEditor.isHidden()){wpgallery.mcemode=true;wpgallery.init()}else{c(&quot;#insert-gallery&quot;).show()}}});jQuery(window).unload(function(){tinymce=tinyMCE=wpgallery=null});var tinymce=null,tinyMCE,wpgallery;wpgallery={mcemode:false,editor:{},dom:{},is_update:false,el:{},I:function(a){return document.getElementById(a)},init:function(){var d=this,a,f,c,e,b=d.getWin();if(!d.mcemode){return}a=(&quot;&quot;+document.location.search).replace(/^\?/,&quot;&quot;).split(&quot;&amp;&quot;);f={};for(c=0;c&lt;a.length;c++){e=a[c].split(&quot;=&quot;);f[unescape(e[0])]=unescape(e[1])}if(f.mce_rdomain){document.domain=f.mce_rdomain}tinymce=b.tinymce;tinyMCE=b.tinyMCE;d.editor=tinymce.EditorManager.activeEditor;d.setup()},getWin:function(){return window.dialogArguments||opener||parent||top},restoreSelection:function(){var a=this;if(tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},setup:function(){var f=this,c,d=f.editor,i,e,h,b,j;if(!f.mcemode){return}f.restoreSelection();f.el=d.selection.getNode();if(f.el.nodeName!=&quot;IMG&quot;||!d.dom.hasClass(f.el,&quot;wpGallery&quot;)){if((i=d.dom.select(&quot;img.wpGallery&quot;))&amp;&amp;i[0]){f.el=i[0]}else{if(getUserSetting(&quot;galfile&quot;)==&quot;1&quot;){f.I(&quot;linkto-file&quot;).checked=&quot;checked&quot;}if(getUserSetting(&quot;galdesc&quot;)==&quot;1&quot;){f.I(&quot;order-desc&quot;).checked=&quot;checked&quot;}if(getUserSetting(&quot;galcols&quot;)){f.I(&quot;columns&quot;).value=getUserSetting(&quot;galcols&quot;)}if(getUserSetting(&quot;galord&quot;)){f.I(&quot;orderby&quot;).value=getUserSetting(&quot;galord&quot;)}jQuery(&quot;#insert-gallery&quot;).show();return}}c=d.dom.getAttrib(f.el,&quot;title&quot;);c=d.dom.decode(c);if(c){jQuery(&quot;#update-gallery&quot;).show();f.is_update=true;e=c.match(/columns=['&quot;]([0-9]+)['&quot;]/);h=c.match(/link=['&quot;]([^'&quot;]+)['&quot;]/i);b=c.match(/order=['&quot;]([^'&quot;]+)['&quot;]/i);j=c.match(/orderby=['&quot;]([^'&quot;]+)['&quot;]/i);if(h&amp;&amp;h[1]){f.I(&quot;linkto-file&quot;).checked=&quot;checked&quot;}if(b&amp;&amp;b[1]){f.I(&quot;order-desc&quot;).checked=&quot;checked&quot;}if(e&amp;&amp;e[1]){f.I(&quot;columns&quot;).value=&quot;&quot;+e[1]}if(j&amp;&amp;j[1]){f.I(&quot;orderby&quot;).value=j[1]}}else{jQuery(&quot;#insert-gallery&quot;).show()}},update:function(){var b=this,a=b.editor,d=&quot;&quot;,c;if(!b.mcemode||!b.is_update){c=&quot;[gallery&quot;+b.getSettings()+&quot;]&quot;;b.getWin().send_to_editor(c);return}if(b.el.nodeName!=&quot;IMG&quot;){return}d=a.dom.decode(a.dom.getAttrib(b.el,&quot;title&quot;));d=d.replace(/\s*(order|link|columns|orderby)=['&quot;]([^'&quot;]+)['&quot;]/gi,&quot;&quot;);d+=b.getSettings();a.dom.setAttrib(b.el,&quot;title&quot;,d);b.getWin().tb_remove()},getSettings:function(){var a=this.I,b=&quot;&quot;;if(a(&quot;linkto-file&quot;).checked){b+=' link=&quot;file&quot;';setUserSetting(&quot;galfile&quot;,&quot;1&quot;)}if(a(&quot;order-desc&quot;).checked){b+=' order=&quot;DESC&quot;';setUserSetting(&quot;galdesc&quot;,&quot;1&quot;)}if(a(&quot;columns&quot;).value!=3){b+=' columns=&quot;'+a(&quot;columns&quot;).value+'&quot;';setUserSetting(&quot;galcols&quot;,a(&quot;columns&quot;).value)}if(a(&quot;orderby&quot;).value!=&quot;menu_order&quot;){b+=' orderby=&quot;'+a(&quot;orderby&quot;).value+'&quot;';setUserSetting(&quot;galord&quot;,a(&quot;orderby&quot;).value)}return b}};
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(c){var b,e,a,d=false;e=function(){b=c(&quot;#media-items&quot;).sortable({items:&quot;div.media-item&quot;,placeholder:&quot;sorthelper&quot;,axis:&quot;y&quot;,distance:2,handle:&quot;div.filename&quot;,stop:function(i,h){var g=c(&quot;#media-items&quot;).sortable(&quot;toArray&quot;),f=g.length;c.each(g,function(k,l){var j=d?(f-k):(1+k);c(&quot;#&quot;+l+&quot; .menu_order input&quot;).val(j)})}})};sortIt=function(){var g=c(&quot;.menu_order_input&quot;),f=g.length;g.each(function(j){var h=d?(f-j):(1+j);c(this).val(h)})};clearAll=function(f){f=f||0;c(&quot;.menu_order_input&quot;).each(function(){if(this.value==&quot;0&quot;||f){this.value=&quot;&quot;}})};c(&quot;#asc&quot;).click(function(){d=false;sortIt();return false});c(&quot;#desc&quot;).click(function(){d=true;sortIt();return false});c(&quot;#clear&quot;).click(function(){clearAll(1);return false});c(&quot;#showall&quot;).click(function(){c(&quot;#sort-buttons span a&quot;).toggle();c(&quot;a.describe-toggle-on&quot;).hide();c(&quot;a.describe-toggle-off, table.slidetoggle&quot;).show();return false});c(&quot;#hideall&quot;).click(function(){c(&quot;#sort-buttons span a&quot;).toggle();c(&quot;a.describe-toggle-on&quot;).show();c(&quot;a.describe-toggle-off, table.slidetoggle&quot;).hide();return false});e();clearAll();if(c(&quot;#media-items&gt;*&quot;).length&gt;1){a=wpgallery.getWin();c(&quot;#save-all, #gallery-settings&quot;).show();if(typeof a.tinyMCE!=&quot;undefined&quot;&amp;&amp;a.tinyMCE.activeEditor&amp;&amp;!a.tinyMCE.activeEditor.isHidden()){wpgallery.mcemode=true;wpgallery.init()}else{c(&quot;#insert-gallery&quot;).show()}}});jQuery(window).unload(function(){tinymce=tinyMCE=wpgallery=null});var tinymce=null,tinyMCE,wpgallery;wpgallery={mcemode:false,editor:{},dom:{},is_update:false,el:{},I:function(a){return document.getElementById(a)},init:function(){var d=this,a,f,c,e,b=d.getWin();if(!d.mcemode){return}a=(&quot;&quot;+document.location.search).replace(/^\?/,&quot;&quot;).split(&quot;&amp;&quot;);f={};for(c=0;c&lt;a.length;c++){e=a[c].split(&quot;=&quot;);f[unescape(e[0])]=unescape(e[1])}if(f.mce_rdomain){document.domain=f.mce_rdomain}tinymce=b.tinymce;tinyMCE=b.tinyMCE;d.editor=tinymce.EditorManager.activeEditor;d.setup()},getWin:function(){return window.dialogArguments||opener||parent||top},setup:function(){var f=this,c,d=f.editor,i,e,h,b,j;if(!f.mcemode){return}f.el=d.selection.getNode();if(f.el.nodeName!=&quot;IMG&quot;||!d.dom.hasClass(f.el,&quot;wpGallery&quot;)){if((i=d.dom.select(&quot;img.wpGallery&quot;))&amp;&amp;i[0]){f.el=i[0]}else{if(getUserSetting(&quot;galfile&quot;)==&quot;1&quot;){f.I(&quot;linkto-file&quot;).checked=&quot;checked&quot;}if(getUserSetting(&quot;galdesc&quot;)==&quot;1&quot;){f.I(&quot;order-desc&quot;).checked=&quot;checked&quot;}if(getUserSetting(&quot;galcols&quot;)){f.I(&quot;columns&quot;).value=getUserSetting(&quot;galcols&quot;)}if(getUserSetting(&quot;galord&quot;)){f.I(&quot;orderby&quot;).value=getUserSetting(&quot;galord&quot;)}jQuery(&quot;#insert-gallery&quot;).show();return}}c=d.dom.getAttrib(f.el,&quot;title&quot;);c=d.dom.decode(c);if(c){jQuery(&quot;#update-gallery&quot;).show();f.is_update=true;e=c.match(/columns=['&quot;]([0-9]+)['&quot;]/);h=c.match(/link=['&quot;]([^'&quot;]+)['&quot;]/i);b=c.match(/order=['&quot;]([^'&quot;]+)['&quot;]/i);j=c.match(/orderby=['&quot;]([^'&quot;]+)['&quot;]/i);if(h&amp;&amp;h[1]){f.I(&quot;linkto-file&quot;).checked=&quot;checked&quot;}if(b&amp;&amp;b[1]){f.I(&quot;order-desc&quot;).checked=&quot;checked&quot;}if(e&amp;&amp;e[1]){f.I(&quot;columns&quot;).value=&quot;&quot;+e[1]}if(j&amp;&amp;j[1]){f.I(&quot;orderby&quot;).value=j[1]}}else{jQuery(&quot;#insert-gallery&quot;).show()}},update:function(){var b=this,a=b.editor,d=&quot;&quot;,c;if(!b.mcemode||!b.is_update){c=&quot;[gallery&quot;+b.getSettings()+&quot;]&quot;;b.getWin().send_to_editor(c);return}if(b.el.nodeName!=&quot;IMG&quot;){return}d=a.dom.decode(a.dom.getAttrib(b.el,&quot;title&quot;));d=d.replace(/\s*(order|link|columns|orderby)=['&quot;]([^'&quot;]+)['&quot;]/gi,&quot;&quot;);d+=b.getSettings();a.dom.setAttrib(b.el,&quot;title&quot;,d);b.getWin().tb_remove()},getSettings:function(){var a=this.I,b=&quot;&quot;;if(a(&quot;linkto-file&quot;).checked){b+=' link=&quot;file&quot;';setUserSetting(&quot;galfile&quot;,&quot;1&quot;)}if(a(&quot;order-desc&quot;).checked){b+=' order=&quot;DESC&quot;';setUserSetting(&quot;galdesc&quot;,&quot;1&quot;)}if(a(&quot;columns&quot;).value!=3){b+=' columns=&quot;'+a(&quot;columns&quot;).value+'&quot;';setUserSetting(&quot;galcols&quot;,a(&quot;columns&quot;).value)}if(a(&quot;orderby&quot;).value!=&quot;menu_order&quot;){b+=' orderby=&quot;'+a(&quot;orderby&quot;).value+'&quot;';setUserSetting(&quot;galord&quot;,a(&quot;orderby&quot;).value)}return b}};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsmediauploaddevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/media-upload.dev.js (17638 => 17639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/media-upload.dev.js        2011-04-14 18:05:30 UTC (rev 17638)
+++ trunk/wp-admin/js/media-upload.dev.js        2011-04-15 04:20:12 UTC (rev 17639)
</span><span class="lines">@@ -4,8 +4,6 @@
</span><span class="cx"> 
</span><span class="cx">         if ( typeof tinyMCE != 'undefined' &amp;&amp; ( ed = tinyMCE.activeEditor ) &amp;&amp; !ed.isHidden() ) {
</span><span class="cx">                 ed.focus();
</span><del>-                if ( tinymce.isIE )
-                        ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark);
</del><span class="cx"> 
</span><span class="cx">                 if ( h.indexOf('[caption') === 0 ) {
</span><span class="cx">                         if ( ed.plugins.wpeditimage )
</span><span class="lines">@@ -58,12 +56,3 @@
</span><span class="cx">         $(window).resize(function(){ tb_position(); });
</span><span class="cx"> 
</span><span class="cx"> })(jQuery);
</span><del>-
-jQuery(document).ready(function($){
-        $('a.thickbox').click(function(){
-                if ( typeof tinyMCE != 'undefined' &amp;&amp; tinyMCE.activeEditor ) {
-                        tinyMCE.get('content').focus();
-                        tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark('simple');
-                }
-        });
-});
</del></span></pre></div>
<a id="trunkwpadminjsmediauploadjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/media-upload.js (17638 => 17639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/media-upload.js        2011-04-14 18:05:30 UTC (rev 17638)
+++ trunk/wp-admin/js/media-upload.js        2011-04-15 04:20:12 UTC (rev 17639)
</span><span class="lines">@@ -1 +1 @@
</span><del>-function send_to_editor(b){var a;if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;(a=tinyMCE.activeEditor)&amp;&amp;!a.isHidden()){a.focus();if(tinymce.isIE){a.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark)}if(b.indexOf(&quot;[caption&quot;)===0){if(a.plugins.wpeditimage){b=a.plugins.wpeditimage._do_shcode(b)}}else{if(b.indexOf(&quot;[gallery&quot;)===0){if(a.plugins.wpgallery){b=a.plugins.wpgallery._do_gallery(b)}}else{if(b.indexOf(&quot;[embed&quot;)===0){if(a.plugins.wordpress){b=a.plugins.wordpress._setEmbed(b)}}}}a.execCommand(&quot;mceInsertContent&quot;,false,b)}else{if(typeof edInsertContent==&quot;function&quot;){edInsertContent(edCanvas,b)}else{jQuery(edCanvas).val(jQuery(edCanvas).val()+b)}}tb_remove()}var tb_position;(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()})})(jQuery);jQuery(document).ready(function(a){a(&quot;a.thickbox&quot;).click(function(){if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;tinyMCE.activeEditor){tinyMCE.get(&quot;content&quot;).focus();tinyMCE.activeEditor.windowManager.bookmark=tinyMCE.activeEditor.selection.getBookmark(&quot;simple&quot;)}})});
</del><span class="cx">\ No newline at end of file
</span><ins>+function send_to_editor(b){var a;if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;(a=tinyMCE.activeEditor)&amp;&amp;!a.isHidden()){a.focus();if(b.indexOf(&quot;[caption&quot;)===0){if(a.plugins.wpeditimage){b=a.plugins.wpeditimage._do_shcode(b)}}else{if(b.indexOf(&quot;[gallery&quot;)===0){if(a.plugins.wpgallery){b=a.plugins.wpgallery._do_gallery(b)}}else{if(b.indexOf(&quot;[embed&quot;)===0){if(a.plugins.wordpress){b=a.plugins.wordpress._setEmbed(b)}}}}a.execCommand(&quot;mceInsertContent&quot;,false,b)}else{if(typeof edInsertContent==&quot;function&quot;){edInsertContent(edCanvas,b)}else{jQuery(edCanvas).val(jQuery(edCanvas).val()+b)}}tb_remove()}var tb_position;(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (17638 => 17639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-04-14 18:05:30 UTC (rev 17638)
+++ trunk/wp-includes/script-loader.php        2011-04-15 04:20:12 UTC (rev 17639)
</span><span class="lines">@@ -355,9 +355,9 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(commentL10n);}catch(e){};'
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'admin-gallery', &quot;/wp-admin/js/gallery$suffix.js&quot;, array( 'jquery-ui-sortable' ), '20090516' );
</del><ins>+                $scripts-&gt;add( 'admin-gallery', &quot;/wp-admin/js/gallery$suffix.js&quot;, array( 'jquery-ui-sortable' ), '20110414' );
</ins><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'media-upload', &quot;/wp-admin/js/media-upload$suffix.js&quot;, array( 'thickbox' ), '20110113' );
</del><ins>+                $scripts-&gt;add( 'media-upload', &quot;/wp-admin/js/media-upload$suffix.js&quot;, array( 'thickbox' ), '20110414' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'media-upload', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'admin-widgets', &quot;/wp-admin/js/widgets$suffix.js&quot;, array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), '20101007' );
</span></span></pre>
</div>
</div>

</body>
</html>