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",
|
||||
data: formData
|
||||
}).always(function(response) {
|
||||
if (/^id:[0-9][0-9]*$/.test(response)) {
|
||||
if ((/^id:[0-9][0-9]*$/).test(response)) {
|
||||
uploadImage(response.replace(/^id:/, ""), 0);
|
||||
} else {
|
||||
loadingModal("hide");
|
||||
|
@ -687,7 +687,7 @@ function userProfileImageInit() {
|
|||
}).always(function(response) {
|
||||
loadingModal("hide");
|
||||
|
||||
if (/\.png\?version=/.test(response)) {
|
||||
if ((/\.png\?version=/).test(response)) {
|
||||
$display.css({ backgroundImage: `url(${response})` });
|
||||
$delete.removeClass("inactive");
|
||||
submitting = false;
|
||||
|
|
Loading…
Reference in a new issue