课程首页:加入课程,加入失败继续显示加入课程弹框

This commit is contained in:
sw 2015-06-13 09:59:42 +08:00
parent 17294ec7ae
commit 4af3a28eab
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@
<script type="text/javascript"> <script type="text/javascript">
function submit_form(obj) function submit_form(obj)
{ {
hideModal(obj);
$("#new-watcher-form").submit(); $("#new-watcher-form").submit();
} }

View File

@ -4,7 +4,7 @@
<% if @state %> <% if @state %>
<% if @state == 0 %> <% if @state == 0 %>
alert("加入成功"); alert("加入成功");
hideModal("#popbox02"); hideModal($("#popbox"));
<% elsif @state == 1 %> <% elsif @state == 1 %>
alert("密码错误"); alert("密码错误");
<% elsif @state == 2 %> <% elsif @state == 2 %>