Lines Matching refs:id

17             onProgress: function(id, fileName, loaded, total){
18 self._onProgress(id, fileName, loaded, total);
19 self._options.onProgress(id, fileName, loaded, total);
21 onComplete: function(id, fileName, result){
22 self._onComplete(id, fileName, result);
23 self._options.onComplete(id, fileName, result);
25 onCancel: function(id, fileName){
26 self._onCancel(id, fileName);
27 self._options.onCancel(id, fileName);
42 var id = this._handler.add(fileContainer);
43 var fileName = this._handler.getName(id);
45 if (this._options.onSubmit(id, fileName) !== false){
46 this._onSubmit(id, fileName);
50 _addToList: function(id, fileName){
52 item.qqFileId = id;
64 nameElement.id = 'mediamanager__upload_item'+id;
85 ' <button class="qq-upload-action" type="submit" id="mediamanager__upload_button">' + LANG.media_upload_btn + '</button>' +
157 _onComplete: function(id, fileName, result){
161 var item = this._getItemByFileId(id);
176 $link = '<a href="' + result.link + '" id="h_:' + result.id + '" class="select">' + nameInput.value + '</a>';
189 var button = '<form method="post" action="' + action + '" id="mediamanager__done_form"><div>';
204 getName: function(id){
205 var file = this._inputs[id];
206 var name = document.getElementById('mediamanager__upload_item'+id);
229 _upload: function(id, params){
230 var input = this._inputs[id];
233 throw new Error('file with passed id was not added, or already uploaded or cancelled');
236 var fileName = this.getName(id);
238 var iframe = this._createIframe(id);
256 self._options.onComplete(id, fileName, response);
257 self._dequeue(id);
259 delete self._inputs[id];
269 return id;
278 getName: function(id){
279 var file = this._files[id];
280 var name = document.getElementById('mediamanager__upload_item'+id);
293 getSize: function(id){
294 var file = this._files[id];
299 _upload: function(id, params){
300 var file = this._files[id],
301 name = this.getName(id),
302 size = this.getSize(id);
305 this._loaded[id] = 0;
307 var xhr = this._xhrs[id] = new XMLHttpRequest();
312 self._loaded[id] = e.loaded;
313 self._options.onProgress(id, name, e.loaded, e.total);
319 self._onComplete(id, xhr);