1/** 2Uploader for website file. See Uploader class for the complete list of parameters. 3 4@class Site 5@extends WS.Uploader.Uploader 6@namespace WS.Uploader 7@constructor 8@param {Integer} params.idfileserver Set the file server number. 9@param {String} params.idsite Set the website identifier. 10@param {String} params.idtypeobject Set the object type to associate to uploaded files. 11**/ 12WS.Namespace.Create("WS.Uploader.Site", (function () 13{ 14 var _class = function (buttonElements, listElement, params, options, dropElements, listingTemplate, globalProgressElements) 15 { 16 WS.Uploader.Uploader.call(this, buttonElements, listElement, params, options, dropElements, listingTemplate, globalProgressElements); 17 18 if (!this.params.idfileserver) throw "Missing parameter : idfileserver."; 19 if (!this.params.idsite) throw "Missing parameter : idsite."; 20 if (!this.params.idtypeobject) throw "Missing parameter : idtypeobject."; 21 22 var _me = this; 23 var xhr = new XMLHttpRequest(); 24 xhr.addEventListener("load", function () 25 { 26 if (this.status == 200) 27 { 28 var settings = JSON.parse(this.responseText); 29 _me.options.availableDiskSpace = settings.AvailableDiskSpace; 30 _me.options.maximumDiskSpace = settings.MaximumDiskSpace; 31 _me.options.maximumFileSize = settings.MaximumFileSize; 32 } 33 }, false); 34 xhr.open("GET", this.url.replace("/Site", "/Settings?idfileserver=" + this.params.idfileserver + "&idsite=" + this.params.idsite)); 35 xhr.send(); 36 }; 37 38 WS.Exts.Inherits(_class, WS.Uploader.Uploader); 39 40 return _class; 41})()); 42 43/** 44Uploader for website file. See Uploader class for the complete list of parameters. 45 46@class Site 47@extends WS.Uploader.Uploader 48@namespace WS.Uploader 49@constructor 50@param {Integer} params.idfileserver Set the file server number. 51@param {String} params.idsite Set the website identifier. 52@param {String} params.idtypeobject Set the object type to associate to uploaded files. 53**/ 54WS.Namespace.Create("WS.Uploader.WebStore", (function () { 55 var _class = function (buttonElements, listElement, params, options, dropElements, listingTemplate, globalProgressElements) { 56 WS.Uploader.Uploader.call(this, buttonElements, listElement, params, options, dropElements, listingTemplate, globalProgressElements); 57 58 if (!this.params.idfileserver) throw "Missing parameter : idfileserver."; 59 if (!this.params.idsite) throw "Missing parameter : idsite."; 60 if (!this.params.idtypeobject) throw "Missing parameter : idtypeobject."; 61 62 var _me = this; 63 var xhr = new XMLHttpRequest(); 64 xhr.addEventListener("load", function () { 65 if (this.status == 200) { 66 var settings = JSON.parse(this.responseText); 67 _me.options.availableDiskSpace = settings.AvailableDiskSpace; 68 _me.options.maximumDiskSpace = settings.MaximumDiskSpace; 69 _me.options.maximumFileSize = settings.MaximumFileSize; 70 } 71 }, false); 72 xhr.open("GET", this.url.replace("/Site", "/Settings?idfileserver=" + this.params.idfileserver + "&idsite=" + this.params.idsite + "&isWebstore=" + true)); 73 xhr.send(); 74 }; 75 76 WS.Exts.Inherits(_class, WS.Uploader.Uploader); 77 78 return _class; 79})());
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.