消息弹窗的延时显示
This commit is contained in:
parent
dc70b40309
commit
4f80e259e8
|
@ -1147,18 +1147,18 @@ class User < Principal
|
||||||
|
|
||||||
#为新注册用户发送留言
|
#为新注册用户发送留言
|
||||||
def add_new_jour
|
def add_new_jour
|
||||||
if Message.where("id=19278").any? and Message.where("id=19291").any? and Message.where("id=19292").any?
|
# if Message.where("id=19278").any? and Message.where("id=19291").any? and Message.where("id=19292").any?
|
||||||
lead_message1 = Message.find(19278)
|
# lead_message1 = Message.find(19278)
|
||||||
notes1 = lead_message1.content
|
# notes1 = lead_message1.content
|
||||||
# lead_message2 = Message.find(19292)
|
# lead_message2 = Message.find(19292)
|
||||||
# notes2 = lead_message2.content
|
# notes2 = lead_message2.content
|
||||||
# lead_message3 = Message.find(19291)
|
# lead_message3 = Message.find(19291)
|
||||||
# notes3 = lead_message3.content
|
# notes3 = lead_message3.content
|
||||||
# user_id 默认为课程使者创建
|
# # user_id 默认为课程使者创建
|
||||||
self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes1, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
# self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes1, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
||||||
# self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes2, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
# self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes2, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
||||||
# self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes3, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
# self.journals_for_messages << JournalsForMessage.new(:user_id => 1, :notes => notes3, :reply_id => 0, :status => true, :is_readed => false, :private => 0)
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
# 更新邮箱的同事,更新invite_lists表中的邮箱信息
|
# 更新邮箱的同事,更新invite_lists表中的邮箱信息
|
||||||
|
|
|
@ -112,21 +112,17 @@
|
||||||
}).mouseleave(function(){
|
}).mouseleave(function(){
|
||||||
onNotice = false;
|
onNotice = false;
|
||||||
var obj = $("#user_messages_list");
|
var obj = $("#user_messages_list");
|
||||||
obj.timer = setTimeout(function(){
|
setTimeout(function(){
|
||||||
if(!onNotice && !onUserMessages)
|
if(!onNotice && !onUserMessages) {
|
||||||
obj.hide(0);
|
obj.hide();
|
||||||
obj.html("<%=escape_javascript(render :partial => 'layouts/message_loading') %>");
|
obj.html("<%=escape_javascript(render :partial => 'layouts/message_loading') %>");
|
||||||
}, 500);
|
} }, 500);
|
||||||
});
|
});
|
||||||
|
$("#message_list_detail").mouseenter(function(event){
|
||||||
$("#user_messages_list").mouseenter(function(event){
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
onUserMessages = true;
|
onUserMessages = true;
|
||||||
$(this).show();
|
|
||||||
}).mouseleave(function(){
|
}).mouseleave(function(){
|
||||||
onUserMessages = false;
|
onUserMessages = false;
|
||||||
$(this).hide();
|
|
||||||
$(this).html("<%=escape_javascript(render :partial => 'layouts/message_loading') %>");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#navHomepageProfile").mouseenter(function(){
|
$("#navHomepageProfile").mouseenter(function(){
|
||||||
|
|
Loading…
Reference in New Issue