Lines Matching refs:resp

268 	var fallback = mxUtils.bind(this, function(resp)  argument
283 }), mxUtils.bind(this, function(resp) argument
288 if (resp != null && resp.error != null)
290 if (resp.error.code == 403 &&
291 resp.error.data != null && resp.error.data.length > 0 &&
292 resp.error.data[0].reason == 'domainPolicy')
294 msg = resp.error.message;
402 var resp;
406 resp = JSON.parse(req.getText());
410 resp = null;
417 success(resp);
423 var data = (resp != null && resp.error != null) ? ((resp.error.data != null) ?
424 resp.error.data : resp.error.errors) : null;
430 if (error != null && resp != null && resp.error != null && (resp.error.code == -1 ||
431 (resp.error.code == 403 && (reason == 'domainPolicy' || resp.error.message ==
434 error(resp);
437 else if (resp != null && resp.error != null && (resp.error.code == 401 ||
438 (resp.error.code == 403 && reason != 'rateLimitExceeded')))
441 if ((resp.error.code == 403 && this.retryAuth) ||
442 (resp.error.code == 401 && this.retryAuth && reason == 'authError'))
446 error(resp);
458 … else if (resp != null && resp.error != null && resp.error.code != 412 && resp.error.code != 404 &&
459 resp.error.code != 400 && this.currentRequest == reqObj && retryCount < this.maxRetries)
469 error(resp);
754 DriveClient.prototype.resetTokenRefresh = function(resp) argument
763 if (resp != null && resp.error == null && resp.expires_in > 0)
765 this.tokenRefreshInterval = parseInt(resp.expires_in) * 1000;
777 }), resp.expires_in * 900);
823 this.executeRequest({url: '/about'}, mxUtils.bind(this, function(resp) argument
829 if (resp != null && resp.user != null)
831 email = resp.user.emailAddress;
832 name = resp.user.displayName;
833 pic = (resp.user.picture != null) ? resp.user.picture.url : null;
992 mxUtils.bind(this, function(resp) argument
996 resp.title = resp.originalFilename;
1000 resp.headRevisionId = resp.id;
1001 resp.id = id;
1003 this.getXmlFile(resp, success, error);
1008 this.loadDescriptor(id, mxUtils.bind(this, function(resp) argument
1014 var binary = /\.png$/i.test(resp.title);
1017 if (/\.v(dx|sdx?)$/i.test(resp.title) || /\.gliffy$/i.test(resp.title) ||
1020 var url = resp.downloadUrl;
1023 …this.ui.convertFile(url, resp.title, resp.mimeType, this.extension, success, error, null, headers);
1028 if (readXml || readLibrary || resp.mimeType == this.libraryMimeType ||
1029 resp.mimeType == this.xmlMimeType)
1031 this.getXmlFile(resp, success, error, true, readLibrary);
1035 this.getXmlFile(resp, success, error);
1072 DriveClient.prototype.getXmlFile = function(resp, success, error, ignoreMime, readLibrary) argument
1077 var url = resp.downloadUrl;
1103 else if (resp.mimeType == this.libraryMimeType || readLibrary)
1105 if (resp.mimeType == this.libraryMimeType && !readLibrary)
1111 success(new DriveLibrary(this.ui, data, resp));
1118 if (/\.png$/i.test(resp.title))
1159 else if (/\.pdf$/i.test(resp.title))
1186 success(new LocalFile(this.ui, xhr.responseText, resp.title + this.extension, true));
1205 }), resp.title);
1209 …ccess((importFile) ? new LocalFile(this.ui, data, resp.title, true) : new DriveFile(this.ui, data,…
1245 }), ((resp.mimeType != null && resp.mimeType.substring(0, 6) == 'image/' &&
1246 resp.mimeType.substring(0, 9) != 'image/svg')) || /\.png$/i.test(resp.title) ||
1247 /\.jpe?g$/i.test(resp.title) || /\.pdf$/i.test(resp.title),
1453 var wrapper = mxUtils.bind(this, function(resp) argument
1460 if (resp == null)
1467 var delta = new Date(resp.modifiedDate).getTime() - new Date(mod0).getTime();
1469 if (delta <= 0 || etag0 == resp.etag || (revision && head0 == resp.headRevisionId))
1479 if (etag0 == resp.etag)
1484 if (revision && head0 == resp.headRevisionId)
1490 error({message: mxResources.get('errorSavingFile') + ': ' + temp}, resp);
1497 '-to-' + resp.headRevisionId + '.' + resp.modifiedDate + '-' +
1498 this.ui.hashValue(resp.etag) + ((temp.length > 0) ? '-errors-' + temp : ''),
1510 success(resp, savedData);
1517 }, mxUtils.bind(this, mxUtils.bind(this, function(resp) argument
1519 resp.pinned = true;
1524 params: resp
1615 (realOverwrite) ? null : etag, pinned), mxUtils.bind(this, function(resp) argument
1621 wrapper(resp);
1643 mxUtils.bind(this, function(resp) argument
1650 if (resp != null && resp.etag == etag)
1692 if (urlParams['test'] == '1' && resp.headRevisionId == head0)
1695 'local', etag, 'remote', resp.etag,
1697 'response', [resp], 'file', [file]);
1700 error(err, resp);
1977 …st(this.createUploadRequest(null, metadata, data, false, binary), mxUtils.bind(this, function(resp) argument
1981 success(new DriveLibrary(this.ui, data, resp));
1983 else if (resp == false)
1992 success(new DriveFile(this.ui, data, resp));