summaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-06 13:46:50 +0200
committerkondou <kondou@ts.unde.re>2013-09-06 13:46:50 +0200
commitd18a070a0393ac3846053bcef1833dd01856e117 (patch)
treec238261eedc69ef4311a4f546a12ea4db60bf35e /settings/js/personal.js
parent221bbd275cf8dfaec5810745ad319f0daeacc8d6 (diff)
downloadnextcloud-server-d18a070a0393ac3846053bcef1833dd01856e117.tar.gz
nextcloud-server-d18a070a0393ac3846053bcef1833dd01856e117.zip
Have the "notsquare" error as data, not as message
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r--settings/js/personal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index e9220ef9039..d6e2d8fbca9 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -108,7 +108,7 @@ function avatarResponseHandler(data) {
$warning.hide();
if (data.status === "success") {
updateAvatar();
- } else if (data.data.message === "notsquare") {
+ } else if (data.data === "notsquare") {
showAvatarCropper();
} else {
$warning.show();