1jQuery.widget( 'gc.gcFileSelectorFolderUpload', $.gc.gcFileSelectorFolder, { 2 options: { 3 owner: null 4 }, 5 _create: function() { 6 var self = this; 7 8 $uploader = $('<div class="uploader"></div>') 9 $uploader.appendTo( this.element ) 10 11 var queueId = "queue" + "FolderUpload"; 12 $el = $("<div id='" + queueId + "'></div>") 13 $el.appendTo( this.element ) 14 15 this.filesEl = $('<div class="files-list"></div>') 16 this.filesEl.appendTo( this.element ) 17 18 19 setTimeout( function() { 20 var uploadifiveParams = { 21 auto: true, 22 buttonText: "ÐагÑÑзиÑÑ", 23 width: 120, 24 id: "folderUpload", 25 queueID: queueId, 26 dnd: false, 27 removeCompleted: true, 28 multi: true, 29 uploadScript : '/fileservice/widget/upload?deprecated=11' 30 + '&secure=' + window.isEnabledSecureUpload 31 + '&host=' + window.fileserviceUploadHost, 32 formData: { fullAnswer: true }, 33 onUploadError: function( file, errorCode, errorMsg ) { 34 alert("ERROR"); 35 }, 36 onUploadComplete: function( e,res ) { 37 var res = JSON.parse( res ); 38 self.fileUploaded( res.hash ); 39 } 40 }; 41 42 if (window.isEnabledSecureUpload && window.fileserviceUploadHost) { 43 uploadifiveParams.onUpload = getUploadifySecretLink; 44 } 45 46 $uploader.uploadifive(uploadifiveParams); 47 48 }, 100 ) 49 50 51 52 //this.element.html("ÐÑбеÑиÑе Ñайл") 53 54 }, 55 init: function() { 56 this.loadFiles( "recent", this.filesEl ) 57 }, 58 fileUploaded: function( hash ) { 59 var self = this; 60 var $fileEl = this.createFileEl( hash ) 61 62 $fileEl.prependTo( this.filesEl ); 63 64 self.markFile( hash, 'recent', true ); 65 } 66} );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.