summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorJason Croft2016-05-12 15:21:05 -0400
committerJason Croft2016-05-12 15:21:05 -0400
commitc4b754e53b9c7c233547ccf23d81774101386b10 (patch)
treedbcd85ca30f66875eb92981db46716f888bcdef5 /public/js
parent4aa4e3eacc36ae54c49ac94cf40594f33c4d9b1d (diff)
Add avatar to History page.
Diffstat (limited to 'public/js')
-rw-r--r--public/js/cover.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/cover.js b/public/js/cover.js
index dde0c679..a7ee855f 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -32,6 +32,7 @@ function pageInit() {
$('.ui-signin').hide();
$('.ui-or').hide();
$('.ui-welcome').show();
+ $('.ui-avatar').prop('src',data.photo);
$('.ui-name').html(data.name);
$('.ui-signout').show();
$(".ui-history").click();
@@ -41,6 +42,7 @@ function pageInit() {
$('.ui-signin').slideDown();
$('.ui-or').slideDown();
$('.ui-welcome').hide();
+ $('.ui-avatar').prop('src','');
$('.ui-name').html('');
$('.ui-signout').hide();
parseStorageToHistory(historyList, parseHistoryCallback);