Changeset 26199
- Timestamp:
- 11/15/2013 05:11:10 AM (11 years ago)
- Location:
- trunk/src/wp-admin/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/password-strength-meter.js
r25839 r26199 1 /* global zxcvbn */ 1 2 window.wp = window.wp || {}; 2 3 … … 41 42 currentField = $( '#' + userInputFields[ i ] ); 42 43 43 if ( 0 == currentField.length ) {44 if ( 0 === currentField.length ) { 44 45 continue; 45 46 } … … 59 60 // Remove empty values, short words, and duplicates. Short words are likely to cause many false positives. 60 61 blacklist = $.grep( blacklist, function( value, key ) { 61 if ( '' == value || 4 > value.length ) {62 if ( '' === value || 4 > value.length ) { 62 63 return false; 63 64 } … … 68 69 return blacklist; 69 70 } 70 } 71 }; 71 72 72 73 // Backwards compatibility. -
trunk/src/wp-admin/js/plugin-install.js
r26144 r26199 1 /* global plugininstallL10n, tb_click, confirm */ 2 1 3 /* Plugin Browser Thickbox related JS*/ 2 4 var tb_position; … … 14 16 if ( typeof document.body.style.maxWidth != 'undefined' ) 15 17 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 16 } ;18 } 17 19 18 20 return $('a.thickbox').each( function() { -
trunk/src/wp-admin/js/set-post-thumbnail.js
r21592 r26199 1 function WPSetAsThumbnail(id, nonce){ 1 /* global setPostThumbnailL10n, ajaxurl, post_id, alert */ 2 /* exported WPSetAsThumbnail */ 3 4 function WPSetAsThumbnail( id, nonce ) { 2 5 var $link = jQuery('a#wp-post-thumbnail-' + id); 3 6 4 7 $link.text( setPostThumbnailL10n.saving ); 5 8 jQuery.post(ajaxurl, { 6 action: "set-post-thumbnail", post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie)9 action: 'set-post-thumbnail', post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent( document.cookie ) 7 10 }, function(str){ 8 11 var win = window.dialogArguments || opener || parent || top;
Note: See TracChangeset
for help on using the changeset viewer.