deps: update jquery version (#2441)
* deps: update jquery version * squash: resize thumbnails after appending shared thumb This forces jquery animate to show the thumbnail somehow... Remote thumbnails basically work this way (append to filmstrip and then resize filmstrip thumbnails) so I just copied that implementation. ... So I admit I lost this fight because even after looking at jquery I couldn't understand why it doesn't work on the first resize but does on the second. Plus I'm being put on a strict timebox to update jquery. * squash: getJSON no longer supports .success
This commit is contained in:
committed by
Дамян Минков
parent
e05f2a9027
commit
8b35ea8ad5
@@ -61,12 +61,12 @@ export function checkDialNumber(dialNumber: string) {
|
||||
const fullUrl = `${dialOutAuthUrl}?phone=${dialNumber}`;
|
||||
|
||||
$.getJSON(fullUrl)
|
||||
.success(response =>
|
||||
.then(response =>
|
||||
dispatch({
|
||||
type: PHONE_NUMBER_CHECKED,
|
||||
response
|
||||
}))
|
||||
.error(error =>
|
||||
.catch(error =>
|
||||
dispatch({
|
||||
type: DIAL_OUT_SERVICE_FAILED,
|
||||
error
|
||||
@@ -88,12 +88,12 @@ export function updateDialOutCodes() {
|
||||
}
|
||||
|
||||
$.getJSON(dialOutCodesUrl)
|
||||
.success(response =>
|
||||
.then(response =>
|
||||
dispatch({
|
||||
type: DIAL_OUT_CODES_UPDATED,
|
||||
response
|
||||
}))
|
||||
.error(error =>
|
||||
.catch(error =>
|
||||
dispatch({
|
||||
type: DIAL_OUT_SERVICE_FAILED,
|
||||
error
|
||||
|
||||
@@ -83,6 +83,6 @@ export function searchDirectory( // eslint-disable-line max-params
|
||||
`${serviceUrl}?query=${encodeURIComponent(text)}&queryTypes=${
|
||||
queryTypesString}&jwt=${jwt}`,
|
||||
resolve)
|
||||
.fail((jqxhr, textStatus, error) => reject(error));
|
||||
.catch((jqxhr, textStatus, error) => reject(error));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user