Changeset 31538
- Timestamp:
- 02/25/2015 04:16:18 AM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 5 edited
-
css/customize-controls.css (modified) (2 diffs)
-
js/customize-controls.js (modified) (5 diffs)
-
js/post.js (modified) (1 diff)
-
js/press-this.js (modified) (3 diffs)
-
js/tags-box.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-controls.css
r31533 r31538 836 836 } 837 837 838 @-moz-keyframes customize-reload {839 0% { opacity: 0; }840 100% { opacity: 1; }841 }842 843 838 @keyframes customize-reload { 844 839 0% { opacity: 0; } … … 850 845 display: block; 851 846 -webkit-animation: customize-reload .75s; /* Can't use `transition` because `display` changes here. */ 852 -moz-animation: customize-reload .75s;853 847 animation: customize-reload .75s; 854 848 } -
trunk/src/wp-admin/js/customize-controls.js
r31533 r31538 571 571 */ 572 572 attachEvents: function () { 573 var meta,section = this;573 var section = this; 574 574 575 575 // Expand/Collapse section/panel. … … 637 637 638 638 section.container.on( 'input', '#themes-filter', function( event ) { 639 var term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ), 639 var count, 640 term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ), 640 641 controls = section.controls(); 642 641 643 controls.pop(); // Remove the last control (the add-new control). 644 642 645 _.each( controls, function( control ) { 643 646 control.filter( term ); … … 829 832 * @since 4.2.0 830 833 */ 831 closeDetails: function ( theme) {834 closeDetails: function () { 832 835 $( 'body' ).removeClass( 'modal-open' ); 833 836 this.overlay.fadeOut( 'fast' ); … … 1799 1802 filter: function( term ) { 1800 1803 var control = this, 1801 haystack = control.params.theme.name + ' ' 1802 + control.params.theme.description + ' '1803 + control.params.theme.tags + ' '1804 +control.params.theme.author;1804 haystack = control.params.theme.name + ' ' + 1805 control.params.theme.description + ' ' + 1806 control.params.theme.tags + ' ' + 1807 control.params.theme.author; 1805 1808 haystack = haystack.toLowerCase().replace( '-', ' ' ); 1806 1809 if ( -1 !== haystack.search( term ) ) { … … 2679 2682 $( window ).on( 'beforeunload', function () { 2680 2683 if ( ! api.state( 'saved' )() ) { 2681 var timeout =setTimeout( function() {2684 setTimeout( function() { 2682 2685 overlay.removeClass( 'customize-loading' ); 2683 2686 }, 1 ); -
trunk/src/wp-admin/js/post.js
r31534 r31538 2 2 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting */ 3 3 4 var tagBox,commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink;4 var commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink; 5 5 // Back-compat: prevent fatal errors 6 6 makeSlugeditClickable = editPermalink = function(){}; -
trunk/src/wp-admin/js/press-this.js
r31535 r31538 7 7 var editor, 8 8 saveAlert = false, 9 $div = $( '<div>' ),10 9 siteConfig = window.wpPressThisConfig || {}, 11 10 data = window.wpPressThisData || {}, … … 63 62 .replace( /<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/ig, '' ) 64 63 .replace( /<\/?[a-z][^>]*>/ig, '' ); 65 }66 67 // TODO: needed?68 function entityEncode( text ) {69 return $div.text( text ).html();70 64 } 71 65 … … 1028 1022 renderError: renderError 1029 1023 }; 1030 } 1024 }; 1031 1025 1032 1026 window.wp = window.wp || {}; -
trunk/src/wp-admin/js/tags-box.js
r31534 r31538 1 1 /* jshint curly: false, eqeqeq: false */ 2 /* global ajaxurl, wpAjax */ 3 4 /** 5 * The functions and classes in that code are a straight cut-and-paste out of 6 * /wp-admin/js/post.js, coupled with Press This' usage of the post_tags_meta_box() 7 * PHP function. 8 * 9 * If Press This makes it into core, we can refactor that code out of post.js and 10 * make it more reusable, as well as improve it to work better, everywhere. 11 * 12 * Copied-and-pasted instead of enqueuing post.js because the latter has much more, 13 * and has processing instead of just functions/classes. 14 */ 2 /* global ajaxurl */ 3 15 4 var tagBox, array_unique_noempty; 16 5 … … 29 18 30 19 return out; 31 } 20 }; 32 21 33 22 tagBox = { … … 47 36 taxbox = $(el).closest('.tagsdiv'), 48 37 thetags = taxbox.find('.the-tags'), 49 comma = window.tagsBoxL10n.tagDelimiter ;38 comma = window.tagsBoxL10n.tagDelimiter, 50 39 current_tags = thetags.val().split( comma ), 51 40 new_tags = [];
Note: See TracChangeset
for help on using the changeset viewer.