1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Update group discussion

This commit is contained in:
Daniel Pan
2016-03-17 15:43:05 +08:00
committed by llj
parent 4aa500203d
commit 077a2627f0
7 changed files with 102 additions and 269 deletions

View File

@@ -478,6 +478,15 @@ define([
Moment.locale(language_code);
},
getRelativeTimeStr: function(m) {
var now = new Date();
if (m - now > 0) {
return gettext("Just now");
} else {
return m.fromNow();
}
},
closePopup: function(e, popup, popup_switch) {
var target = e.target || event.srcElement;
if (!popup.hasClass('hide') && !popup.is(target) && !popup.find('*').is(target) && !popup_switch.is(target) && !popup_switch.find('*').is(target) ) {