Changeset 12435
- Timestamp:
- 03/01/2023 12:38:02 PM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css
r12405 r12435 75 75 } 76 76 .feedback-reason-list li { 77 white-space:nowrap;78 77 padding-right: 2px; 79 78 } … … 205 204 .gp-content ul.feedback-reason-list { 206 205 list-style-type: none; 207 display: inline-block; 208 padding-left: .5em; 206 display: grid; 207 grid-template-columns: repeat(2, 1fr); 208 grid-column-gap: 4px; 209 margin-left: 0; 209 210 } 210 211 .feedback-reason-list li { 211 width: 50%;212 212 float: left; 213 213 padding-top: 4px; … … 216 216 font-size: 1.1em; 217 217 cursor: pointer; 218 min-width: 100%; 218 219 } 219 220 .feedback-reason-list li input[type="checkbox"] { 220 margin-right: 5px; 221 float: left; 222 } 223 .feedback-reason-list li span.gp-reason-text { 224 display: inline-block; 225 margin-bottom: .5em; 226 float: left; 227 width: 70%; 228 margin-left: .5em; 229 margin-top: -0.5em; 221 230 } 222 231 .feedback-comment label, .gp-content h3.feedback-reason-title { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/helpers/helper-translation-discussion.php
r12424 r12435 972 972 $number_of_items = count( $comment_reason ); 973 973 $counter = 0; 974 $comment_reasons = Helper_Translation_Discussion::get_comment_reasons( );974 $comment_reasons = Helper_Translation_Discussion::get_comment_reasons( $comment_locale ); 975 975 foreach ( $comment_reason as $reason ) { 976 976 echo wp_kses( -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-translation-helpers.php
r12405 r12435 453 453 $original_id_array = ! empty( $_POST['data']['original_id'] ) ? array_map( array( $helper_discussion, 'sanitize_original_id' ), $_POST['data']['original_id'] ) : null; 454 454 $comment_reason = ! empty( $_POST['data']['reason'] ) ? $_POST['data']['reason'] : array( 'other' ); 455 $all_comment_reasons = array_keys( Helper_Translation_Discussion::get_comment_reasons( ) );455 $all_comment_reasons = array_keys( Helper_Translation_Discussion::get_comment_reasons( $locale_slug ) ); 456 456 $comment_reason = array_filter( 457 457 $comment_reason, -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js
r12405 r12435 35 35 var translationStatus = ''; 36 36 37 if ( ! selectedRow.hasClass( 'untranslated') ) {37 if ( ( selectedRow.length ) && ( ! selectedRow.hasClass( 'untranslated' ) ) ) { 38 38 translationStatus = selectedRow.attr( 'class' ).split( ' ' )[ 1 ].substring( 7 ); 39 39 bulkTranslationStatus.push( translationStatus ); … … 353 353 // eslint-disable-next-line vars-on-top 354 354 for ( var reason in commentReasons ) { 355 prefix = '<div class="modal-item"><label class="tooltip" title="' + commentReasons[ reason ].explanation + '">';356 suffix = '< /label> <span class="tooltip dashicons dashicons-info" title="' + commentReasons[ reason ].explanation + '"></span></div>';355 prefix = '<div class="modal-item"><label>'; 356 suffix = '<span class="tooltip dashicons dashicons-info" title="' + commentReasons[ reason ].explanation + '"></span></label></div>'; 357 357 inputName = 'modal_feedback_reason'; 358 commentList += prefix + '<input type="checkbox" name="' + inputName + '" value="' + reason + '" /> ' + commentReasons[ reason ].name+ suffix;358 commentList += prefix + '<input type="checkbox" name="' + inputName + '" value="' + reason + '" /> <span class="gp-reason-text">' + commentReasons[ reason ].name + '</span>' + suffix; 359 359 } 360 360 return commentList; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/translation-row-editor-meta-feedback.php
r12405 r12435 13 13 ?> 14 14 <li> 15 <label class="tooltip" title="<?php echo esc_attr( $reason['explanation'] ); ?>"><input type="checkbox" name="feedback_reason" value="<?php echo esc_attr( $key ); ?>" /><?php echo esc_html( $reason['name'] ); ?></label><span class="tooltip dashicons dashicons-info" title="<?php echo esc_attr( $reason['explanation'] ); ?>"></span>15 <label><input type="checkbox" name="feedback_reason" value="<?php echo esc_attr( $key ); ?>" /><span class="gp-reason-text"><?php echo esc_html( $reason['name'] ); ?></span><span class="tooltip dashicons dashicons-info" title="<?php echo esc_attr( $reason['explanation'] ); ?>"></span></label> 16 16 </li> 17 17 <?php endforeach; ?>
Note: See TracChangeset
for help on using the changeset viewer.