Changeset 26200
- Timestamp:
- 11/15/2013 05:15:06 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/link.js
r23586 r26200 1 /* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */ 2 1 3 jQuery(document).ready( function($) { 2 4 … … 23 25 24 26 // Ajax Cat 25 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } );27 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } ); 26 28 $('#link-category-add-submit').click( function() { newCat.focus(); } ); 27 29 syncChecks = function() { -
trunk/src/wp-admin/js/media.js
r22723 r26200 1 /* global ajaxurl, wpAjax */ 1 2 2 3 var findPosts; … … 7 8 overlay = $( '.ui-find-overlay' ); 8 9 9 if ( overlay.length == 0 ) {10 if ( overlay.length === 0 ) { 10 11 $( 'body' ).append( '<div class="ui-find-overlay"></div>' ); 11 12 findPosts.overlay(); … … 99 100 $(document).ready(function() { 100 101 $('#find-posts-submit').click(function(e) { 101 if ( '' == $('#find-posts-response').html() )102 if ( '' === $('#find-posts-response').html() ) 102 103 e.preventDefault(); 103 104 }); -
trunk/src/wp-includes/js/customize-preview.js
r22798 r26200 91 91 }); 92 92 93 94 95 96 93 preview.bind( 'active', function() { 94 if ( api.settings.nonce ) 95 preview.send( 'nonce', api.settings.nonce ); 96 }); 97 97 98 98 preview.send( 'ready' ); -
trunk/src/wp-includes/js/jquery/jquery.table-hotkeys.js
r21592 r26200 9 9 } 10 10 return true; 11 } 11 }; 12 12 return this.filter(is_visible); 13 13 }; … … 17 17 18 18 selected_class = opts.class_prefix + opts.selected_suffix; 19 destructive_class = opts.class_prefix + opts.destructive_suffix 19 destructive_class = opts.class_prefix + opts.destructive_suffix; 20 20 set_current_row = function (tr) { 21 21 if ($.table_hotkeys.current_row) $.table_hotkeys.current_row.removeClass(selected_class); … … 67 67 if (clickable.is('.'+destructive_class)) next_row() || prev_row(); 68 68 clickable.click(); 69 } 69 }; 70 70 }; 71 71 first_row = get_first_row(); … … 75 75 else if (opts.highlight_last) 76 76 set_current_row(get_last_row()); 77 $.hotkeys.add(opts.prev_key, opts.hotkeys_opts, function() {return adjacent_row_callback('prev') });78 $.hotkeys.add(opts.next_key, opts.hotkeys_opts, function() {return adjacent_row_callback('next') });77 $.hotkeys.add(opts.prev_key, opts.hotkeys_opts, function() {return adjacent_row_callback('prev');}); 78 $.hotkeys.add(opts.next_key, opts.hotkeys_opts, function() {return adjacent_row_callback('next');}); 79 79 $.hotkeys.add(opts.mark_key, opts.hotkeys_opts, check); 80 80 $.each(keys, function() { -
trunk/src/wp-includes/js/media-editor.js
r25720 r26200 1 /* global getUserSetting, tinymce, QTags, wpActiveEditor */ 2 1 3 // WordPress, TinyMCE, and Media 2 4 // ----------------------------- … … 525 527 return this.send.attachment( display, attachment.toJSON() ); 526 528 }, this ) ).done( function() { 527 wp.media.editor.insert( _.toArray( arguments ).join( "\n\n") );529 wp.media.editor.insert( _.toArray( arguments ).join('\n\n') ); 528 530 }); 529 531 }, this );
Note: See TracChangeset
for help on using the changeset viewer.