Ticket #15739: 15739.diff
File 15739.diff, 4.9 KB (added by , 14 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wplink/css/wplink.dev.css
1 #wp-link p.howto { 2 margin: 3px; 3 } 4 #link-options { 1 #wp-link #link-options { 5 2 padding: 10px 0 14px; 6 3 border-bottom: 1px solid #dfdfdf; 7 4 margin: 0 6px 14px; 8 5 } 6 #wp-link p.howto { 7 margin: 3px; 8 } 9 #wp-link #internal-toggle { 10 margin: 0 5px; 11 } 12 #wp-link #internal-toggle a { 13 padding-left: 18px; 14 } 9 15 #wp-link label input[type="text"] { 10 16 width: 360px; 11 17 margin-top: 5px; … … 17 23 padding-right: 5px; 18 24 } 19 25 #wp-link .link-search-wrapper { 20 margin: 5px 5px 9px;26 margin: 5px 6px 9px; 21 27 display: block; 22 28 overflow: hidden; 23 29 } -
wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js
32 32 e.preventDefault(); 33 33 }); 34 34 $('#wp-link-cancel').click( wpLink.cancel ); 35 $('#internal-toggle a').click( wpLink.toggleInternalLinking ); 35 36 36 37 rivers.elements.bind('river-select', wpLink.updateFields ); 37 38 … … 242 243 funcContext = this; 243 244 funcTriggered = true; 244 245 }; 246 }, 247 248 toggleInternalLinking : function( event ) { 249 var panel = $('#search-panel'), 250 widget = inputs.dialog.wpdialog('widget'), 251 // We're about to toggle visibility; it's currently the opposite 252 visible = !panel.is(':visible'), 253 win = $(window); 254 255 $(this).toggleClass('toggle-arrow-active', visible); 256 panel.slideToggle( 300, function() { 257 setUserSetting('wplink', visible ? '1' : '0'); 258 inputs[ visible ? 'search' : 'url' ].focus(); 259 260 // Move the box if the box is now expanded, was opened in a collapsed state, 261 // and if it needs to be moved. (Judged by bottom not being positive or 262 // bottom being smaller than top.) 263 var scroll = win.scrollTop(), 264 top = widget.offset().top, 265 bottom = top + widget.outerHeight(), 266 diff = bottom - win.height(); 267 268 if ( diff > scroll ) { 269 widget.animate({'top': diff < top ? top - diff : scroll }, 200); 270 } 271 }); 272 event.preventDefault(); 245 273 } 246 274 } 247 275 -
wp-admin/includes/internal-linking.php
84 84 <label for="link-target-checkbox"><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label> 85 85 </div> 86 86 </div> 87 <div id="search-panel"> 87 <?php $show_internal = '1' == get_user_setting( 'wplink', '0' ); ?> 88 <p class="howto" id="internal-toggle"><a href="#" class="toggle-arrow <?php if ( $show_internal ) echo 'toggle-arrow-active'; ?>"><?php _e( 'Link to Content on this Site' ); ?></a></p> 89 <div id="search-panel"<?php if ( ! $show_internal ) echo ' style="display:none"'; ?>> 88 90 <div class="link-search-wrapper"> 89 <p class="howto"><?php _e( 'Or, link to existing site content:' ); ?></p>90 91 <label for="search-field"> 91 92 <span><?php _e( 'Search' ); ?></span> 92 93 <input type="text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" /> -
wp-admin/css/colors-classic.dev.css
1524 1524 background: #D1E5ee; 1525 1525 } 1526 1526 1527 #screen-meta a.show-settings { 1527 #screen-meta a.show-settings, 1528 .toggle-arrow { 1528 1529 background-image:url("../images/screen-options-toggle-vs.gif?ver=20100531"); 1529 1530 } 1530 1531 -
wp-admin/css/colors-fresh.dev.css
1517 1517 text-decoration: underline; 1518 1518 } 1519 1519 1520 #screen-meta a.show-settings { 1520 #screen-meta a.show-settings, 1521 .toggle-arrow { 1521 1522 background-image:url("../images/screen-options-toggle.gif?ver=20100531"); 1522 1523 } 1523 1524 -
wp-admin/css/wp-admin.dev.css
747 747 list-style-type: disc; 748 748 margin-left: 18px; 749 749 } 750 750 .toggle-arrow { 751 background-repeat: no-repeat; 752 background-position: top left; 753 background-color: transparent; 754 height: 22px; 755 line-height: 22px; 756 display: block; 757 } 758 .toggle-arrow-active { 759 background-position: bottom left; 760 } 751 761 #screen-meta a.show-settings { 752 762 text-decoration: none; 753 763 z-index: 1;