Ticket #21754: 21754.2-refresh.patch
File 21754.2-refresh.patch, 7.3 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/dashboard.php
503 503 ?> 504 504 505 505 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press"> 506 < h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>507 <div class="input-text-wrap">506 <div class="input-text-wrap" id="title-wrap"> 507 <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( 'Enter title here' ); ?></label> 508 508 <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" /> 509 509 </div> 510 510 … … 514 514 </div> 515 515 <?php endif; ?> 516 516 517 <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>518 517 <div class="textarea-wrap"> 518 <label class="screen-reader-text" for="content"><?php _e( 'Content' ); ?></label> 519 519 <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea> 520 520 </div> 521 521 522 522 <script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script> 523 523 524 < h4><label for="tags-input"><?php _e('Tags') ?></label></h4>525 <div class="input-text-wrap">524 <div class="input-text-wrap" id="tags-input-wrap"> 525 <label class="screen-reader-text prompt" for="tags-input" id="tags-input-prompt-text"><?php _e( 'Tags (separate with commas)' ); ?></label> 526 526 <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /> 527 527 </div> 528 528 -
wp-admin/js/dashboard.js
1 var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad ;1 var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad, quickPressHint; 2 2 3 3 jQuery(document).ready( function($) { 4 4 /* Dashboard Welcome Panel */ … … 63 63 postboxes.add_postbox_toggles(pagenow, { pbshow: ajaxPopulateWidgets } ); 64 64 65 65 /* QuickPress */ 66 quickPressHint = function(id) { 67 id = id || 'title'; 68 69 var input = $('#' + id), prompt = $('#' + id + '-prompt-text'); 70 71 if ( input.val() == '' ) 72 prompt.removeClass('screen-reader-text'); 73 74 prompt.click(function(){ 75 $(this).addClass('screen-reader-text'); 76 input.focus(); 77 }); 78 79 input.blur(function(){ 80 if ( this.value == '' ) 81 prompt.removeClass('screen-reader-text'); 82 }).focus(function(){ 83 prompt.addClass('screen-reader-text'); 84 }).keydown(function(e){ 85 prompt.addClass('screen-reader-text'); 86 $(this).unbind(e); 87 }); 88 } 89 66 90 quickPressLoad = function() { 67 91 var act = $('#quickpost-action'), t; 68 92 t = $('#quick-press').submit( function() { … … 87 111 88 112 $('#publish').click( function() { act.val( 'post-quickpress-publish' ); } ); 89 113 114 quickPressHint(); 115 quickPressHint('tags-input'); 116 90 117 }; 91 118 quickPressLoad(); 92 119 -
wp-admin/css/ie-rtl.css
78 78 padding-left: 1px; 79 79 } 80 80 81 #dashboard_quick_press h4 {82 text-align: right;83 }84 85 81 .tagchecklist span a { 86 82 margin: 4px -9px 0 0; 87 83 } -
wp-admin/css/wp-admin-rtl.css
1850 1850 } 1851 1851 1852 1852 /* QuickPress */ 1853 #dashboard_quick_press h4 {1854 float: right;1855 text-align: left;1856 }1857 1858 #dashboard_quick_press .wp-media-buttons {1859 margin: 0 5em 0.5em 0;1860 }1861 1862 #dashboard_quick_press h4 label {1863 margin-right: 0;1864 margin-left: 10px;1865 }1866 1867 #dashboard_quick_press .input-text-wrap,1868 #dashboard_quick_press .textarea-wrap {1869 margin: 0 5em 1em 0;1870 }1871 1872 #dashboard_quick_press #media-buttons {1873 margin: 0 5em .5em 0;1874 padding: 0;1875 }1876 1877 #dashboard-widgets #dashboard_quick_press form p.submit {1878 margin-left: 0;1879 margin-right: 4.6em;1880 }1881 1882 1853 #dashboard-widgets #dashboard_quick_press form p.submit input { 1883 1854 float: right; 1884 1855 } 1885 1856 1886 1857 #dashboard-widgets #dashboard_quick_press form p.submit #save-post { 1887 margin: 0 10px0 1em;1858 margin: 0 0 0 1em; 1888 1859 } 1889 1860 1890 1861 #dashboard-widgets #dashboard_quick_press form p.submit #publish { -
wp-admin/css/wp-admin.css
2810 2810 position: relative; 2811 2811 margin-bottom: 10px; 2812 2812 } 2813 #titlediv label { cursor: text; }2814 2813 2814 #titlediv label { 2815 cursor: text; 2816 } 2817 2815 2818 #titlediv div.inside { 2816 2819 margin: 0; 2817 2820 } … … 6049 6052 } 6050 6053 6051 6054 /* QuickPress */ 6052 #dashboard_quick_press h4 { 6053 font-family: sans-serif; 6054 float: left; 6055 width: 5em; 6056 clear: both; 6057 font-weight: normal; 6058 text-align: right; 6059 font-size: 12px; 6055 #dashboard_quick_press .input-text-wrap { 6056 position: relative; 6060 6057 } 6061 6058 6062 #dashboard_quick_press h4 label { 6063 margin-right: 10px; 6059 #dashboard_quick_press .prompt { 6060 color: #bbb; 6061 position: absolute; 6064 6062 } 6065 6063 6064 #title-wrap label, 6065 #tags-input-wrap label { 6066 cursor: text; 6067 } 6068 6069 #title-wrap #title { 6070 padding: 2px 6px; 6071 font-size: 1.3em; 6072 line-height: 100%; 6073 outline: none; 6074 } 6075 6076 #tags-input-wrap #tags-input { 6077 outline: none; 6078 } 6079 6080 #title-wrap #title-prompt-text { 6081 font-size: 1.3em; 6082 padding: 5px 8px; 6083 } 6084 6085 #tags-input-wrap #tags-input-prompt-text { 6086 font-size: 1em; 6087 padding: 4px 8px; 6088 } 6089 6066 6090 #dashboard_quick_press .input-text-wrap, 6067 6091 #dashboard_quick_press .textarea-wrap { 6068 margin: 0 0 1em 5em;6092 margin: 0 0 1em 0; 6069 6093 } 6070 6094 6071 6095 #dashboard_quick_press .wp-media-buttons { 6072 margin: 0 0 . 5em 5em;6096 margin: 0 0 .2em 8px; 6073 6097 padding: 0; 6074 6098 } 6075 6099 … … 6077 6101 color: #777; 6078 6102 } 6079 6103 6080 #dashboard-widgets #dashboard_quick_press form p.submit {6081 margin-left: 4.6em;6082 }6083 6084 6104 #dashboard-widgets #dashboard_quick_press form p.submit input { 6085 6105 float: left; 6086 6106 } 6087 6107 6088 6108 #dashboard-widgets #dashboard_quick_press form p.submit #save-post { 6089 margin: 0 0.3em 0 5px;6109 margin: 0 1em 0 0; 6090 6110 } 6091 6111 6092 6112 #dashboard-widgets #dashboard_quick_press form p.submit #publish { … … 8109 8129 .locale-zh-cn #sort-buttons { font-size: 1em !important; } 8110 8130 8111 8131 /* ru_RU: Text needs more room to breathe. */ 8112 .locale-ru-ru #dashboard_quick_press .input-text-wrap,8113 .locale-ru-ru #dashboard_quick_press .textarea-wrap,8114 .locale-ru-ru #dashboard_quick_press .wp-media-buttons {8115 margin-left: 5.7em; /* default 5em + 0.7em */8116 }8117 .locale-ru-ru #dashboard_quick_press h4 {8118 width: 5.7em; /* default 5.5em + 0.2em */8119 }8120 .locale-ru-ru #dashboard-widgets #dashboard_quick_press form p.submit {8121 margin-left: 5.3em; /* default 4.6em + 0.7em */8122 }8123 8132 .locale-ru-ru .inline-edit-row fieldset label span.title { 8124 8133 width: auto; /* default 5em */ 8125 8134 min-width: 5em; … … 8134 8143 width: 245px; /* default 200px + 45px */ 8135 8144 } 8136 8145 8137 /* lt_LT: QuickPress + QuickEdit */ 8138 .locale-lt-lt #dashboard_quick_press .input-text-wrap, 8139 .locale-lt-lt #dashboard_quick_press .textarea-wrap, 8140 .locale-lt-lt #dashboard_quick_press .wp-media-buttons { 8141 margin-left: 7em; 8142 } 8143 .locale-lt-lt #dashboard_quick_press h4 { 8144 width: 7em; 8145 } 8146 /* lt_LT: QuickEdit */ 8146 8147 .locale-lt-lt .inline-edit-row fieldset label span.title { 8147 8148 width: 8em; 8148 8149 }