1.修改右上侧课程作业快捷栏显示js、css
This commit is contained in:
parent
512f16a036
commit
63a141a75a
|
@ -74,13 +74,13 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
function setMessageCount () {
|
||||
var mes = $('#loggedas .my-message')
|
||||
mes.html(mes.html()+ '(' + <%=User.current.count_new_jour.to_s%> + ")")
|
||||
var mes = $('#loggedas .my-message');
|
||||
mes.html(mes.html()+ '(' + <%=User.current.count_new_jour.to_s%> + ")");
|
||||
}
|
||||
|
||||
function addSlipMenu () {
|
||||
var loggedas = $('#loggedas ul li:first')
|
||||
var sub_menu = $('.sub_menu')
|
||||
var loggedas = $('#loggedas ul li:first');
|
||||
var sub_menu = $('.sub_menu');
|
||||
loggedas.mouseenter(function(event) {
|
||||
sub_menu.show();
|
||||
});
|
||||
|
@ -90,9 +90,9 @@
|
|||
}
|
||||
|
||||
function addProjectSlipMenu () {
|
||||
var loggedas = $('#project_loggedas_li')
|
||||
var project_sub_menu = $('.project_sub_menu')
|
||||
var course_sub_menu = $('.course_sub_menu')
|
||||
var loggedas = $('#project_loggedas_li');
|
||||
var project_sub_menu = $('.project_sub_menu');
|
||||
var course_sub_menu = $('.course_sub_menu');
|
||||
loggedas.mouseenter(function(event) {
|
||||
course_sub_menu.hide();
|
||||
project_sub_menu.show();
|
||||
|
@ -102,9 +102,9 @@
|
|||
});
|
||||
}
|
||||
function addCourseSlipMenu () {
|
||||
var loggedas = $('#course_loggedas_li')
|
||||
var project_sub_menu = $('.project_sub_menu')
|
||||
var course_sub_menu = $('.course_sub_menu')
|
||||
var loggedas = $('#course_loggedas_li');
|
||||
var project_sub_menu = $('.project_sub_menu');
|
||||
var course_sub_menu = $('.course_sub_menu');
|
||||
loggedas.mouseenter(function(event) {
|
||||
project_sub_menu.hide();
|
||||
course_sub_menu.show();
|
||||
|
@ -133,7 +133,7 @@
|
|||
});
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
$('.sub_menu').find("a").attr('target', '_blank');
|
||||
$('.sub_menu').find("a").attr('target', '_blank');
|
||||
$('.project_sub_menu').find("a").attr('target', '_blank');
|
||||
$('.course_sub_menu').find("a").attr('target', '_blank');
|
||||
});
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
<li id="course_loggedas_li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
||||
<%=link_to l(:label_my_course), {:controller => 'users', :action => 'user_courses', id: User.current.id} %>
|
||||
<ul class="course_sub_menu">
|
||||
<% course_index = 0 %>
|
||||
<% User.current.courses.each do |course| %>
|
||||
<% if !course_endTime_timeout?(course) %>
|
||||
<%= render :partial => 'layouts/user_homework_list', :locals => {:course => course} %>
|
||||
<%= render :partial => 'layouts/user_homework_list', :locals => {:course => course,:course_index => course_index} %>
|
||||
<% course_index += 1 %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% if course %>
|
||||
<li id="homework_loggedas_li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="<%=course.name%>" onmouseover="homeworkSlipMenuOver(<%= course.id%>);" onmouseout="homeworkSlipMenuOut(<%= course.id%>);">
|
||||
<%= link_to course.name, {:controller => 'courses',:action => 'show',id:course.id} %>
|
||||
<ul class="homework_sub_menu" id="homework_loggedas_ul_<%= course.id%>" onmouseover="homeworkSlipMenuOver(<%= course.id%>);" onmouseout="homeworkSlipMenuOut(<%= course.id%>);">
|
||||
<ul class="homework_sub_menu" id="homework_loggedas_ul_<%= course.id%>" style="top:<%= course_index * 28.1%>px;">
|
||||
<% course.homework_for_courses.map(&:bid).each do |bid| %>
|
||||
<li style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title="<%=bid.name%>">
|
||||
<%= link_to bid.name, course_for_bid_path(bid), :target => "_blank" %>
|
||||
|
|
|
@ -2223,7 +2223,7 @@ ul.messages-for-user-reply li {
|
|||
box-shadow: 2px 2px 6px #b0b0b0 ;
|
||||
display: none;
|
||||
background: #13AEBF 0 0 no-repeat;
|
||||
left: 115px;
|
||||
left: 110px;
|
||||
padding-bottom: 5px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
|
|
Loading…
Reference in New Issue