Changeset 2082
- Timestamp:
- 11/14/2015 08:00:10 AM (9 years ago)
- Location:
- sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-js-warnings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-js-warnings/wporg-js-warnings.js
r2066 r2082 12 12 var entries = jQuery("textarea[name='"+name+"']", editor).map(function( prop, el ) { 13 13 var $el = jQuery(el); 14 14 15 return { 15 16 index: prop, 16 17 name: name, 17 18 translation: $el.val(), 18 original: $el.parent('div.textareas').prev('p.original').text() || $el.parent('div.textareas').prev('p').find('span.original').text() // Singular original, or plurals... 19 original: // Singular original, or plural original, or.. the single-original plural view.. 20 $el.parent('div.textareas').prev('p.original').text() || 21 $el.parent('div.textareas').prev('p').find('span.original').text() || 22 jQuery( $el.parents('div.strings').find('span.original').get(prop) ).text() 19 23 } 20 24 }).get(); -
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-js-warnings/wporg-js-warnings.php
r2067 r2082 32 32 33 33 wp_deregister_script( 'editor' ); 34 wp_register_script( 'editor', gp_url_public_root() . 'gp-plugins/wporg-js-warnings/wporg-js-warnings.js', array( 'editor-core', 'jquery' ), '2015-11-1 0' );34 wp_register_script( 'editor', gp_url_public_root() . 'gp-plugins/wporg-js-warnings/wporg-js-warnings.js', array( 'editor-core', 'jquery' ), '2015-11-14' ); 35 35 36 36 }
Note: See TracChangeset
for help on using the changeset viewer.