mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-24 08:51:25 -05:00
Fix some linter errors in dashboard.js
This commit is contained in:
parent
f2385f11d0
commit
1ff201292b
1 changed files with 2 additions and 2 deletions
4
resources/assets/js/dashboard.js
vendored
4
resources/assets/js/dashboard.js
vendored
|
@ -635,7 +635,7 @@ function editItemInit() {
|
||||||
url: "/dashboard/update",
|
url: "/dashboard/update",
|
||||||
data: formData
|
data: formData
|
||||||
}).always(function(response) {
|
}).always(function(response) {
|
||||||
if (/^id:[0-9][0-9]*$/.test(response)) {
|
if ((/^id:[0-9][0-9]*$/).test(response)) {
|
||||||
uploadImage(response.replace(/^id:/, ""), 0);
|
uploadImage(response.replace(/^id:/, ""), 0);
|
||||||
} else {
|
} else {
|
||||||
loadingModal("hide");
|
loadingModal("hide");
|
||||||
|
@ -687,7 +687,7 @@ function userProfileImageInit() {
|
||||||
}).always(function(response) {
|
}).always(function(response) {
|
||||||
loadingModal("hide");
|
loadingModal("hide");
|
||||||
|
|
||||||
if (/\.png\?version=/.test(response)) {
|
if ((/\.png\?version=/).test(response)) {
|
||||||
$display.css({ backgroundImage: `url(${response})` });
|
$display.css({ backgroundImage: `url(${response})` });
|
||||||
$delete.removeClass("inactive");
|
$delete.removeClass("inactive");
|
||||||
submitting = false;
|
submitting = false;
|
||||||
|
|
Loading…
Reference in a new issue