Changeset 20758
- Timestamp:
- 05/09/2012 09:26:19 PM (13 years ago)
- Location:
- trunk/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/customize-controls.dev.js
r20745 r20758 139 139 140 140 this.uploader = new wp.Uploader({ 141 browser: this.container.find('.upload'), 142 dropzone: this.container.find('.upload-dropzone'), 143 success: this.success 141 container: this.container, 142 browser: this.container.find('.upload'), 143 dropzone: this.container.find('.upload-dropzone'), 144 success: this.success 144 145 }); 145 146 -
trunk/wp-includes/js/plupload/wp-plupload.dev.js
r20577 r20758 3 3 4 4 (function( exports, $ ) { 5 var Uploader, body; 6 7 body = $( document.body ); 8 5 9 /* 6 10 * An object that helps create a WordPress uploader using plupload. … … 17 21 * @param attributes - object - Attributes and methods for this specific instance. 18 22 */ 19 varUploader = function( options ) {23 Uploader = function( options ) { 20 24 var self = this, 21 25 elements = { … … 70 74 71 75 this.uploader.init(); 76 77 this.browser.on( 'mouseenter', this.refresh ); 78 body.toggleClass( 'uploader-drag-drop', this.uploader.features.dragdrop ); 72 79 73 80 this.uploader.bind( 'UploadProgress', this.progress ); … … 161 168 added: function() {}, 162 169 progress: function() {}, 163 complete: function() {} 170 complete: function() {}, 171 refresh: function() { 172 this.uploader.refresh(); 173 } 164 174 }); 165 175
Note: See TracChangeset
for help on using the changeset viewer.