<!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" />
<title>[18851] trunk: Toggle the pinkynails properly, props goto10, fixes #17212</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/18851">18851</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-10-01 00:12:39 +0000 (Sat, 01 Oct 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Toggle the pinkynails properly, props goto10, fixes <a href="http://core.trac.wordpress.org/ticket/17212">#17212</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="#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 (18850 => 18851)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/gallery.dev.js        2011-09-30 22:52:29 UTC (rev 18850)
+++ trunk/wp-admin/js/gallery.dev.js        2011-10-01 00:12:39 UTC (rev 18851)
</span><span class="lines">@@ -41,12 +41,14 @@
</span><span class="cx">                 $('#sort-buttons span a').toggle();
</span><span class="cx">                 $('a.describe-toggle-on').hide();
</span><span class="cx">                 $('a.describe-toggle-off, table.slidetoggle').show();
</span><ins>+                $('img.pinkynail').toggle(false);
</ins><span class="cx">                 return false;
</span><span class="cx">         });
</span><span class="cx">         $('#hideall').click(function(){
</span><span class="cx">                 $('#sort-buttons span a').toggle();
</span><span class="cx">                 $('a.describe-toggle-on').show();
</span><span class="cx">                 $('a.describe-toggle-off, table.slidetoggle').hide();
</span><ins>+                $('img.pinkynail').toggle(true);
</ins><span class="cx">                 return false;
</span><span class="cx">         });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjsgalleryjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/gallery.js (18850 => 18851)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/gallery.js        2011-09-30 22:52:29 UTC (rev 18850)
+++ trunk/wp-admin/js/gallery.js        2011-10-01 00:12:39 UTC (rev 18851)
</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;+docume
 nt.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;gal
 ord&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;I
 MG&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();c(&quot;img.pinkynail&quot;).toggle(false);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();c(&quot;img.pinkynail&quot;).toggle(true);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:fu
 nction(){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.getS
 ettings()+&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="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (18850 => 18851)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-09-30 22:52:29 UTC (rev 18850)
+++ trunk/wp-includes/script-loader.php        2011-10-01 00:12:39 UTC (rev 18851)
</span><span class="lines">@@ -337,7 +337,7 @@
</span><span class="cx">                         'submittedOn' =&gt; __('Submitted on:')
</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' ), '20110414' );
</del><ins>+                $scripts-&gt;add( 'admin-gallery', &quot;/wp-admin/js/gallery$suffix.js&quot;, array( 'jquery-ui-sortable' ), '20110930' );
</ins><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' ), '20110925', 1 );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>