Changeset 10101
- Timestamp:
- 12/07/2008 05:14:49 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/inline-edit-post.js
r10088 r10101 208 208 $.post('admin-ajax.php', params, 209 209 function(r) { 210 var row = $(inlineEditPost.what+id);211 210 $('table.widefat .inline-edit-save .waiting').hide(); 212 211 213 212 if (r) { 214 213 if ( -1 != r.indexOf('<tr') ) { 215 r = r.replace(/hide-if-no-js/, ''); 216 217 $('#edit-'+id).remove(); 218 row.html($(r).html()); 214 $(inlineEditPost.what+id).remove(); 215 $('#edit-'+id).before(r).remove(); 216 217 var row = $(inlineEditPost.what+id); 218 row.hide(); 219 219 220 if ( 'draft' == $('input[name="post_status"]').val() ) 220 221 row.find('td.column-comments').hide(); 222 223 row.find('.hide-if-no-js').removeClass('hide-if-no-js'); 221 224 inlineEditPost.addEvents(row); 222 225 row.fadeIn(); … … 229 232 } 230 233 } 231 );234 , 'html'); 232 235 return false; 233 236 }, -
trunk/wp-admin/js/inline-edit-tax.js
r10054 r10101 106 106 $.post('admin-ajax.php', params, 107 107 function(r) { 108 var row = $(inlineEditTax.what+id);108 109 109 $('table.widefat .inline-edit-save .waiting').hide(); 110 110 111 111 if (r) { 112 112 if ( -1 != r.indexOf('<tr') ) { 113 $('#edit-'+id).remove(); 114 r = r.replace(/hide-if-no-js/, ''); 115 row.html($(r).html()).fadeIn(); 113 $(inlineEditTax.what+id).remove(); 114 $('#edit-'+id).before(r).remove(); 115 116 var row = $(inlineEditTax.what+id); 117 row.hide(); 118 119 row.find('.hide-if-no-js').removeClass('hide-if-no-js'); 116 120 inlineEditTax.addEvents(row); 121 row.fadeIn(); 117 122 } else 118 123 $('#edit-'+id+' .inline-edit-save .error').html(r).show(); -
trunk/wp-includes/script-loader.php
r10099 r10101 251 251 $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' ); 252 252 253 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081206 ' );253 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081206b' ); 254 254 $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array( 255 255 'error' => __('Error while saving the changes.'), … … 258 258 ) ); 259 259 260 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081 117' );260 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081206' ); 261 261 $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array( 262 262 'error' => __('Error while saving the changes.')
Note: See TracChangeset
for help on using the changeset viewer.