From 686e5cfa866aa3fca54ffa5fdd5e8b4fe129e884 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 26 Mar 2013 23:01:13 -0400 Subject: [PATCH] #85 - Password page should indicate if one exists --- dashboard-ui/scripts/updatepasswordpage.js | 4 ++++ dashboard-ui/updatepassword.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/updatepasswordpage.js b/dashboard-ui/scripts/updatepasswordpage.js index 9c3a009b23..f0b53c6c2f 100644 --- a/dashboard-ui/scripts/updatepasswordpage.js +++ b/dashboard-ui/scripts/updatepasswordpage.js @@ -15,8 +15,12 @@ if (user.HasPassword) { $('#btnResetPassword', page).show(); + $('#fldCurrentPassword', page).show(); + $('h3', page).html('Update Password').show(); } else { $('#btnResetPassword', page).hide(); + $('#fldCurrentPassword', page).hide(); + $('h3', page).html('Create Password').show(); } }); diff --git a/dashboard-ui/updatepassword.html b/dashboard-ui/updatepassword.html index b07bd16913..88306e3ede 100644 --- a/dashboard-ui/updatepassword.html +++ b/dashboard-ui/updatepassword.html @@ -14,9 +14,10 @@ Password Media Library +

Create Password