From 0aa2aefe03a1ffacf5a9bad69ccaf5be7439b49c Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Mon, 2 Nov 2015 10:30:51 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E5=90=8D=E5=AF=86=E7=A0=81=E4=B8=8D=E5=8F=AF=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/my/account.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 7bc674ea6..7e39ad5fa 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -170,7 +170,7 @@
确认
-
+
From fb692fad4ced5f0902167b71e23565468e8520f8 Mon Sep 17 00:00:00 2001
From: ouyangxuhua
Date: Mon, 2 Nov 2015 12:54:58 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E5=9C=A8=E9=A1=B9=E7=9B=AE=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E4=B8=AD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=88=96=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E6=88=90=E5=91=98=E6=97=B6=EF=BC=8C=E5=AE=9E=E6=97=B6?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE=E6=88=90=E5=91=98=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/base_projects.html.erb | 2 +-
app/views/members/create.js.erb | 1 +
app/views/members/destroy.js.erb | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb
index 0f622d831..b418be4ab 100644
--- a/app/views/layouts/base_projects.html.erb
+++ b/app/views/layouts/base_projects.html.erb
@@ -76,7 +76,7 @@
From 1a7e1db3fb6caba0396ff098986d34f608f84adb Mon Sep 17 00:00:00 2001
From: ouyangxuhua
Date: Mon, 2 Nov 2015 14:20:14 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BA=93=E9=BC=A0?=
=?UTF-8?q?=E6=A0=87=E5=9C=A8=E7=A7=BB=E5=8A=A8=E6=97=B6=EF=BC=8C=E7=81=B0?=
=?UTF-8?q?=E8=89=B2=E6=9D=A1=E8=B7=9F=E7=9D=80=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/user_resource.html.erb | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/app/views/users/user_resource.html.erb b/app/views/users/user_resource.html.erb
index f6bb3c8cb..5c6339e59 100644
--- a/app/views/users/user_resource.html.erb
+++ b/app/views/users/user_resource.html.erb
@@ -145,6 +145,7 @@
var id; //资源id
var sendType; //发送到课程 1 发送到项目 2
var lastSendType; //保存上次发送的发送类型
+ var last_op
$("#resources_list").mousedown(function(e) {
//如果是右键的话
if (3 == e.which) {
@@ -179,6 +180,28 @@
last_line = line;
}
});
+
+ //鼠标经过时,背景颜色设为灰色
+ $("#resources_list").mouseover(function(e){
+ pageX = e.clientX;
+ pageY = e.clientY;
+ var ele = document.elementFromPoint(pageX,pageY);
+ line = $(ele).parent();
+ if(last_op != null){
+ last_op.children().css("background-color", 'white');
+ restore();
+ last_op == null;
+ }
+ //如果当前的tag是li,那么还要li的父级元素
+ if(line.get(0).tagName === 'LI'){
+ line = line.parent();
+ }
+ //将当前的元素的所有子元素的背景色改为蓝色
+ line.children().css("background-color", '#e1e1e1');
+ //将当前元素赋给 上一个对象 保存起来。
+ last_op = line;
+ });
+
//元素包含关系计算
var contains = function(root, el) {
if (root.compareDocumentPosition)