Changeset 9726
- Timestamp:
- 11/15/2008 09:58:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/edit-comments.js
r9724 r9726 18 18 n = n + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 ); 19 19 if ( n < 0 ) { n = 0; } 20 a.html( n.toString() );21 20 $('#awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0'); 21 n = n.toString(); 22 if ( n.length > 3 ) 23 n = n.substr(0, n.length-3)+' '+n.substr(-3); 24 a.html(n); 22 25 }); 23 26 }; … … 35 38 } 36 39 if ( n < 0 ) { n = 0; } 37 a.html( n.toString() );38 40 $('#awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0'); 41 n = n.toString(); 42 if ( n.length > 3 ) 43 n = n.substr(0, n.length-3)+' '+n.substr(-3); 44 a.html(n); 39 45 }); 40 46 … … 50 56 } 51 57 if ( n < 0 ) { n = 0; } 52 a.html( n.toString() ); 58 n = n.toString(); 59 if ( n.length > 3 ) 60 n = n.substr(0, n.length-3)+' '+n.substr(-3); 61 a.html(n); 53 62 }); 54 63 -
trunk/wp-admin/js/inline-edit-post.js
r9712 r9726 12 12 t.rows = $('tr.iedit'); 13 13 14 // prepare the edit row 15 // .dblclick(function() { inlineEditPost.toggle(this); }) 14 // prepare the edit rows 16 15 qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); }); 17 18 // .dblclick(function() { inlineEditPost.revert(); })19 16 bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); }); 20 17 … … 26 23 27 24 // add events 28 // t.rows.dblclick(function() { inlineEditPost.toggle(this); });29 25 t.addEvents(t.rows); 30 26 … … 52 48 $('select[name="_status"] option[value="future"]', bulkRow).remove(); 53 49 54 $('#doaction').click(function(e){ 55 if ( $('select[name="action"]').val() == 'edit' ) { 56 e.preventDefault(); 57 t.setBulk(); 58 } else if ( $('form#posts-filter tr.inline-editor').length > 0 ) { 59 t.revert(); 60 } 61 }); 62 63 $('#doaction2').click(function(e){ 64 if ( $('select[name="action2"]').val() == 'edit' ) { 50 $('#doaction, #doaction2').click(function(e){ 51 var n = $(this).attr('id').substr(2); 52 if ( $('select[name="'+n+'"]').val() == 'edit' ) { 65 53 e.preventDefault(); 66 54 t.setBulk(); … … 206 194 function(r) { 207 195 var row = $(inlineEditPost.what+id); 196 $('table.widefat .inline-edit-save .waiting').hide(); 208 197 209 198 if (r) { -
trunk/wp-admin/js/inline-edit-tax.js
r9712 r9726 106 106 function(r) { 107 107 var row = $(inlineEditTax.what+id); 108 $('table.widefat .inline-edit-save .waiting').hide(); 108 109 109 110 if (r) { -
trunk/wp-includes/script-loader.php
r9722 r9726 128 128 'dismiss' => __('Dismiss'), 129 129 'crunching' => __('Crunching…'), 130 'deleted' => __('Deleted') ,130 'deleted' => __('Deleted') 131 131 ) ); 132 132 … … 157 157 'strong' => __('Strong') 158 158 ) ); 159 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081115 ' );159 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081115b' ); 160 160 $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( 161 'pending' => __('%i% pending'), // must look like: "# blah blah"162 161 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), 163 'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']) ,162 'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']) 164 163 ) ); 165 164 $scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20080925' ); … … 167 166 $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery-ui-sortable'), '20081109' ); 168 167 $scripts->localize( 'postbox', 'postboxL10n', array( 169 'requestFile' => admin_url('admin-ajax.php') ,168 'requestFile' => admin_url('admin-ajax.php') 170 169 ) ); 171 170 $scripts->add( 'slug', '/wp-admin/js/slug.js', array('jquery'), '20080208' ); … … 173 172 'requestFile' => admin_url('admin-ajax.php'), 174 173 'save' => __('Save'), 175 'cancel' => __('Cancel') ,174 'cancel' => __('Cancel') 176 175 ) ); 177 176 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20081112b' ); … … 252 251 $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' ); 253 252 254 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081115 ' );253 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081115b' ); 255 254 $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array( 256 255 'error' => __('Error while saving the changes.') 257 256 ) ); 258 257 259 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '2008111 0' );258 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081115' ); 260 259 $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array( 261 260 'error' => __('Error while saving the changes.')
Note: See TracChangeset
for help on using the changeset viewer.