- Timestamp:
- 12/15/2014 07:53:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r30738 r30871 253 253 // jQuery.fn.slideUp is not hiding an element if it is not in the DOM 254 254 this.container.toggle( active ); 255 args.completeCallback(); 255 if ( args.completeCallback ) { 256 args.completeCallback(); 257 } 256 258 } else if ( active ) { 257 259 this.container.stop( true, true ).slideDown( duration, args.completeCallback ); … … 821 823 inject = function ( sectionId ) { 822 824 var parentContainer; 823 if ( ! sectionId ) { // @todo allow a control to be embed ed without a section, for instance a control embedded in the frontend825 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the frontend 824 826 return; 825 827 } … … 879 881 // jQuery.fn.slideUp is not hiding an element if it is not in the DOM 880 882 this.container.toggle( active ); 881 args.completeCallback(); 883 if ( args.completeCallback ) { 884 args.completeCallback(); 885 } 882 886 } else if ( active ) { 883 887 this.container.slideDown( args.duration, args.completeCallback ); … … 913 917 */ 914 918 deactivate: Container.prototype.deactivate, 919 920 /** 921 * Re-use _toggleActive from Container class. 922 * 923 * @access private 924 */ 925 _toggleActive: Container.prototype._toggleActive, 915 926 916 927 dropdownInit: function() {
Note: See TracChangeset
for help on using the changeset viewer.