修复密码修改bug
This commit is contained in:
@@ -90,7 +90,9 @@
|
||||
{{range $k, $v := .recentLogs}}
|
||||
<div class="panel-body">
|
||||
<div class="w45 pull-left">
|
||||
<a href="{{urlfor "TaskController.ViewLog" "id" $v.id}}" class="news-item-title">{{$v.task_name}} # {{$v.id}}</a>
|
||||
<a href="{{urlfor "TaskController.ViewLog" "id" $v.id}}" class="news-item-title">
|
||||
{{$v.task_name}} # {{$v.id}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="w45 pull-left">{{$v.start_time}} </div>
|
||||
<div class="w10 pull-left">
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
密码修改
|
||||
@@ -40,9 +40,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top: 15px">
|
||||
<label class="col-sm-3 control-label" for="password">新密码</label>
|
||||
<label class="col-sm-3 control-label" for="password1">新密码</label>
|
||||
<div class="col-sm-3" >
|
||||
<input type="text" class="form-control input-sm" placeholder="" name="password" value="" />
|
||||
<input type="text" class="form-control input-sm" placeholder="" name="password1" value="" />
|
||||
</div>
|
||||
<div class="col-sm-6" style="padding-top:5px;">
|
||||
<i>不修改密码请留空</i>
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top: 15px">
|
||||
<label class="col-sm-3 control-label" for="concurrent">确认密码</label>
|
||||
<label class="col-sm-3 control-label" for="password2">确认密码</label>
|
||||
<div class="col-sm-3" >
|
||||
<input type="text" class="form-control input-sm" placeholder="" name="password2" value="" />
|
||||
</div>
|
||||
@@ -73,8 +73,8 @@
|
||||
<script>
|
||||
$(function () {
|
||||
$("form").submit(function () {
|
||||
|
||||
$("button[type='submit']").attr('disabled', true);
|
||||
// console.log($(this).serialize());
|
||||
//$("button[type='submit']").attr('disabled', true);
|
||||
$.post('{{urlfor "MainController.Profile"}}', $(this).serialize(), function (out) {
|
||||
if (out.status == 0) {
|
||||
alert("保存成功");
|
||||
|
||||
Reference in New Issue
Block a user