From cee08d9c585e404f821c2433309820f631c42830 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 27 Mar 2015 20:05:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E5=85=A5=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B=E5=BC=B9=E5=87=BA=E6=A1=86=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/_set_join.js.erb | 1 +
app/views/courses/new_join.js.erb | 11 ++-
app/views/projects/_new_join.html.erb | 101 +++++++++++---------------
3 files changed, 53 insertions(+), 60 deletions(-)
diff --git a/app/views/courses/_set_join.js.erb b/app/views/courses/_set_join.js.erb
index 81c7b42e5..0ccefdba1 100644
--- a/app/views/courses/_set_join.js.erb
+++ b/app/views/courses/_set_join.js.erb
@@ -4,6 +4,7 @@
<% if @state %>
<% if @state == 0 %>
alert("加入成功");
+ hideModal("#popbox02");
<% elsif @state == 1 %>
alert("密码错误");
<% elsif @state == 2 %>
diff --git a/app/views/courses/new_join.js.erb b/app/views/courses/new_join.js.erb
index c0a6f4a50..00245f8cb 100644
--- a/app/views/courses/new_join.js.erb
+++ b/app/views/courses/new_join.js.erb
@@ -1,3 +1,8 @@
-$('#ajax-modal').html('<%= escape_javascript(render :partial => 'projects/new_join', :locals => {:course => @course}) %>');
-showModal('ajax-modal', '400px');
-$('#ajax-modal').addClass('new-watcher');
+$('#ajax-modal').html('<%= escape_javascript(render :partial => 'projects/new_join', locals: { :course => @course}) %>');
+showModal('ajax-modal', '500px');
+$('#ajax-modal').css('height','100px');
+$('#ajax-modal').siblings().remove();
+$('#ajax-modal').before("" +
+"");
+$('#ajax-modal').parent().css("top","").css("left","");
+$('#ajax-modal').parent().addClass("anonymos");
diff --git a/app/views/projects/_new_join.html.erb b/app/views/projects/_new_join.html.erb
index b1704ec32..c823f5ed0 100644
--- a/app/views/projects/_new_join.html.erb
+++ b/app/views/projects/_new_join.html.erb
@@ -1,62 +1,49 @@
-
+
+
- | - -