Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ind.ie Projects
Waystone
Commits
6f83eacb
Unverified
Commit
6f83eacb
authored
Sep 08, 2015
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated client-side JS to match the CoffeeScript formatter for time formatting.
parent
78ed1b67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
static/js/public.js
static/js/public.js
+2
-2
No files found.
static/js/public.js
View file @
6f83eacb
...
...
@@ -373,7 +373,7 @@ window.addEventListener('load', function(){
var
humanTime
=
moment
(
timeOfPost
).
fromNow
();
return
humanTime
+
"
"
;
return
humanTime
;
}
else
{
...
...
@@ -465,7 +465,7 @@ window.addEventListener('load', function(){
var
timestamp
=
(
postDate
.
getAttribute
(
'
data-timestamp
'
)).
replace
(
/_/g
,
'
:
'
);
var
timeOfPost
=
new
Date
(
timestamp
);
var
humanTime
=
moment
(
timeOfPost
).
fromNow
();
postDate
.
innerHTML
=
humanTime
+
"
"
;
postDate
.
innerHTML
=
humanTime
;
}
},
3000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment