Changeset 10258
- Timestamp:
- 12/27/2008 12:18:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r10172 r10258 73 73 do_action('admin_head'); 74 74 75 if ( $is_iphone ) { ?> 75 wp_print_styles('no-js'); 76 ?> 77 <script type="text/javascript"> 78 (function(){ 79 var nojs = document.getElementById('no-js'); 80 nojs.parentNode.removeChild(nojs); 81 })(); 82 </script> 83 84 <?php if ( $is_iphone ) { ?> 76 85 <style type="text/css">.row-actions{visibility:visible;}</style> 77 86 <?php } ?> -
trunk/wp-admin/css/global.css
r10150 r10258 179 179 .hidden, 180 180 .closed .inside, 181 .hide-if- no-js {181 .hide-if-js { 182 182 display: none; 183 183 } -
trunk/wp-admin/includes/post.php
r10256 r10258 872 872 if ( $closed = get_user_option('closedpostboxes_'.$page, 0, false ) ) { 873 873 if ( !is_array( $closed ) ) return ''; 874 return in_array( $id, $closed )? ' if-js-closed' : '';874 return in_array( $id, $closed )? 'closed' : ''; 875 875 } else { 876 876 return ''; -
trunk/wp-admin/js/comment.js
r10064 r10258 1 1 jQuery(document).ready( function($) { 2 jQuery('.hide-if-no-js').show();3 jQuery('.hide-if-js').hide();4 2 5 3 var stamp = $('#timestamp').html(); -
trunk/wp-admin/js/common.js
r10232 r10258 133 133 // pulse 134 134 $('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300); 135 136 // show things that should be visible, hide what should be hidden137 $('.hide-if-no-js').removeClass('hide-if-no-js');138 $('.hide-if-js').hide();139 135 140 136 // Basic form validation -
trunk/wp-admin/js/dashboard.js
r10125 r10258 1 1 2 2 jQuery( function($) { 3 4 // close postboxes that should be closed5 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');6 3 7 4 // These widgets are sometimes populated via ajax … … 38 35 $('#dashboard_recent_drafts ul').prepend( this ); 39 36 } ).end().remove(); 40 $(this).find('.hide-if-no-js').removeClass('hide-if-no-js');41 37 tb_init('a.thickbox'); 42 38 quickPressLoad(); -
trunk/wp-admin/js/edit-comments.js
r10204 r10258 304 304 $('#replyrow').after(c); 305 305 this.o = id = '#comment-'+r.id; 306 $(id+' .hide-if-no-js').removeClass('hide-if-no-js');307 306 this.revert(); 308 307 this.addEvents($(id)); -
trunk/wp-admin/js/inline-edit-post.js
r10101 r10258 221 221 row.find('td.column-comments').hide(); 222 222 223 row.find('.hide-if-no-js').removeClass('hide-if-no-js');224 223 inlineEditPost.addEvents(row); 225 224 row.fadeIn(); -
trunk/wp-admin/js/inline-edit-tax.js
r10150 r10258 37 37 r.each(function() { 38 38 $(this).find('a.editinline').click(function() { inlineEditTax.edit(this); return false; }); 39 $(this).find('.hide-if-no-js').removeClass('hide-if-no-js');40 39 }); 41 40 }, … … 117 116 row.hide(); 118 117 119 row.find('.hide-if-no-js').removeClass('hide-if-no-js');120 118 inlineEditTax.addEvents(row); 121 119 row.fadeIn(); -
trunk/wp-admin/js/link.js
r9703 r10258 1 1 jQuery(document).ready( function($) { 2 // close postboxes that should be closed3 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');4 2 5 3 jQuery('#link_name').focus(); -
trunk/wp-admin/js/page.js
r9956 r10258 2 2 postboxes.add_postbox_toggles('page'); 3 3 make_slugedit_clickable(); 4 5 // close postboxes that should be closed6 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');7 4 8 5 jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } ); -
trunk/wp-admin/js/post.js
r10255 r10258 151 151 jQuery(document).ready( function($) { 152 152 tagCloud.init(); 153 154 // close postboxes that should be closed155 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');156 153 157 154 // postboxes … … 468 465 if ( 'object' == typeof r && r.responses[0] ) { 469 466 $('#the-comment-list').append( r.responses[0].data ); 470 $('#the-comment-list .hide-if-no-js').removeClass('hide-if-no-js');471 467 472 468 theList = theExtraList = null; -
trunk/wp-admin/wp-admin.css
r10237 r10258 671 671 } 672 672 673 .tablenav .tablenav-pages a, .tablenav-pages span.current { 673 .tablenav .tablenav-pages a, 674 .tablenav-pages span.current { 674 675 text-decoration: none; 675 676 border: none; … … 705 706 } 706 707 707 #update-nag, .plugin-update { 708 #update-nag, 709 .plugin-update { 708 710 line-height: 29px; 709 711 font-size: 12px; … … 715 717 } 716 718 717 #update-nag a, .plugin-update a { 719 #update-nag a, 720 .plugin-update a { 718 721 font-size: 1.1em; 719 722 } -
trunk/wp-includes/class.wp-styles.php
r9002 r10258 40 40 41 41 $href = $this->_css_href( $this->registered[$handle]->src, $ver, $handle ); 42 $rel = isset($this->registered[$handle]->extra['alt']) && $this->registered[$handle]->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; 43 $title = isset($this->registered[$handle]->extra['title']) ? "title='" . attribute_escape( $this->registered[$handle]->extra['title'] ) . "'" : ''; 42 44 43 45 $end_cond = ''; … … 47 49 } 48 50 49 echo apply_filters( 'style_loader_tag', "<link rel=' stylesheet'href='$href' type='text/css' media='$media' />\n", $handle );51 echo apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle' $title href='$href' type='text/css' media='$media' />\n", $handle ); 50 52 if ( 'rtl' === $this->text_direction && isset($this->registered[$handle]->extra['rtl']) && $this->registered[$handle]->extra['rtl'] ) { 51 53 if ( is_bool( $this->registered[$handle]->extra['rtl'] ) ) … … 54 56 $rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" ); 55 57 56 echo apply_filters( 'style_loader_tag', "<link rel=' stylesheet'href='$rtl_href' type='text/css' media='$media' />\n", $handle );58 echo apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle ); 57 59 } 58 60 -
trunk/wp-includes/script-loader.php
r10222 r10258 42 42 $scripts->default_version = get_bloginfo( 'version' ); 43 43 44 $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '200812 10' );44 $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081226' ); 45 45 $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); 46 46 … … 162 162 'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};' 163 163 ) ); 164 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '200812 11' );164 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081226' ); 165 165 $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( 166 166 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), … … 180 180 'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};' 181 181 ) ); 182 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '200812 17' );182 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20081226' ); 183 183 $scripts->localize( 'post', 'postL10n', array( 184 184 'tagsUsed' => __('Tags used on this post:'), … … 206 206 'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};' 207 207 ) ); 208 $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'wp-lists', 'postbox'), '200812 10' );208 $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'wp-lists', 'postbox'), '20081226' ); 209 209 $scripts->localize( 'page', 'postL10n', array( 210 210 'cancel' => __('Cancel'), … … 227 227 'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};' 228 228 ) ); 229 $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '200812 10' );230 $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '200812 10' );229 $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20081226' ); 230 $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20081226' ); 231 231 $scripts->localize( 'comment', 'commentL10n', array( 232 232 'cancel' => __('Cancel'), … … 263 263 $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20081210' ); 264 264 265 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '200812 10' );265 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081226' ); 266 266 $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array( 267 267 'error' => __('Error while saving the changes.'), … … 271 271 ) ); 272 272 273 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '200812 10' );273 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081226' ); 274 274 $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array( 275 275 'error' => __('Error while saving the changes.'), … … 285 285 $scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' ); 286 286 287 $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '200812 10' );287 $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081226' ); 288 288 289 289 $scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20081210' ); … … 322 322 323 323 $styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081210' ); 324 $styles->add_data( 'ie', 'conditional', ' gte IE 6' );324 $styles->add_data( 'ie', 'conditional', 'lte IE 7' ); 325 325 326 326 $styles->add( 'colors', true, array(), '20081210' ); // Register "meta" stylesheet for admin colors … … 330 330 $styles->add_data( 'colors-classic', 'rtl', true ); 331 331 332 $styles->add( 'global', '/wp-admin/css/global.css', array(), '200812 10' );332 $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081226' ); 333 333 $styles->add( 'media', '/wp-admin/css/media.css', array(), '20081210' ); 334 334 $styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20081210' ); … … 341 341 $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' ); 342 342 $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' ); 343 $styles->add( 'no-js', '/wp-admin/css/no-js.css', array(), '20081225' ); 343 344 344 345 foreach ( $rtl_styles as $rtl_style )
Note: See TracChangeset
for help on using the changeset viewer.