#85 - Password page should indicate if one exists
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@@ -14,9 +14,10 @@
|
||||
<a href="#" data-role="button" class="ui-btn-active">Password</a>
|
||||
<a href="#" data-role="button" onclick="Dashboard.navigate('library.html', true);">Media Library</a>
|
||||
</div>
|
||||
<h3 style="display: none;">Create Password</h3>
|
||||
<form id="updatePasswordForm">
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
<li id="fldCurrentPassword" style="display: none;">
|
||||
<label for="txtCurrentPassword">Current password: </label>
|
||||
<input type="password" id="txtCurrentPassword" name="txtCurrentPassword" />
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user