Ticket #11420: update.and.save.diff
File update.and.save.diff, 3.0 KB (added by , 10 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js
10 10 lastSearch: '', 11 11 init : function() { 12 12 inputs.dialog = $('#wp-link'); 13 inputs.update = $('#wp-link-update a'); 13 14 // URL 14 15 inputs.url = $('#url-field'); 15 16 // Secondary options … … 23 24 rivers.elements = $('.query-results', inputs.dialog); 24 25 25 26 // Bind event handlers 26 $('#wp-link-update').click( wpLink.update );27 inputs.update.click( wpLink.update ); 27 28 $('#wp-link-cancel').click( function() { tinyMCEPopup.close(); } ); 28 29 29 30 rivers.elements.delegate('li', 'click', wpLink.selectInternalLink ) … … 39 40 40 41 // Clear previously selected links 41 42 rivers.elements.find('.selected').removeClass('selected'); 42 // Clear fields and focus the URL field43 inputs.url.val('http://');44 inputs.title.val('');45 43 46 44 tinyMCEPopup.restoreSelection(); 45 47 46 // If link exists, select proper values. 48 47 if ( e = ed.dom.getParent(ed.selection.getNode(), 'A') ) { 49 48 // Set URL and description. … … 52 51 // Set open in new tab. 53 52 if ( "_blank" == ed.dom.getAttrib(e, 'target') ) 54 53 inputs.openInNewTab.attr('checked','checked'); 54 // Update save prompt. 55 inputs.update.text( wpLinkL10n.update ); 56 57 // If there's no link, set the default values. 58 } else { 59 // Set URL and description to defaults. 60 // Leave the new tab setting as-is. 61 inputs.url.val('http://'); 62 inputs.title.val(''); 63 // Update save prompt. 64 inputs.update.text( wpLinkL10n.save ); 55 65 } 66 56 67 tinyMCEPopup.storeSelection(); 57 68 // If the focus is moved above the selection changes, 58 69 // IE will show a flashing cursor over the dialog. -
wp-includes/script-loader.php
272 272 273 273 $scripts->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js", array('jquery'), '20101119d' ); 274 274 $scripts->localize( 'wplink', 'wpLinkL10n', array( 275 'update' => __('Update'), 276 'save' => __('Save Link'), 275 277 'untitled' => __('Untitled'), 276 278 'noMatchesFound' => __('No matches found.'), 277 279 'l10n_print_after' => 'try{convertEntities(wpLinkL10n);}catch(e){};', -
wp-admin/includes/internal-linking.php
113 113 <a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a> 114 114 </div> 115 115 <div id="wp-link-update"> 116 <a class="button-primary" href="#">< ?php _e( 'Update' ); ?></a>116 <a class="button-primary" href="#"></a> 117 117 </div> 118 118 </div> 119 119 </div>