use ? instead of X for avatar name fallback

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2016-11-22 17:08:28 +01:00
parent e0d01e4768
commit 298cd0f1f8
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
* 3. $('.avatardiv').avatar(); * 3. $('.avatardiv').avatar();
* This will search the DOM for 'user' data, to use as the username. If there * This will search the DOM for 'user' data, to use as the username. If there
* is no username available it will default to a placeholder with the value of * is no username available it will default to a placeholder with the value of
* "x". The size will be determined the same way, as the second example. * "?". The size will be determined the same way, as the second example.
* *
* 4. $('.avatardiv').avatar('jdoe', 128, true); * 4. $('.avatardiv').avatar('jdoe', 128, true);
* This will behave like the first example, except it will also append random * This will behave like the first example, except it will also append random
@ -65,7 +65,7 @@
if (typeof(this.data('user')) !== 'undefined') { if (typeof(this.data('user')) !== 'undefined') {
user = this.data('user'); user = this.data('user');
} else { } else {
this.imageplaceholder('x'); this.imageplaceholder('?');
return; return;
} }
} }
@ -105,7 +105,7 @@
$div.imageplaceholder(user, result.data.displayname); $div.imageplaceholder(user, result.data.displayname);
} else { } else {
// User does not exist // User does not exist
$div.imageplaceholder(user, 'X'); $div.imageplaceholder(user, '?');
$div.css('background-color', '#b9b9b9'); $div.css('background-color', '#b9b9b9');
} }
} else { } else {