Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
dacd95dd
Commit
dacd95dd
authored
Dec 31, 2009
by
Yadd
Browse files
Date in readable format
parent
7d83901f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/lemonldap-ng-manager/example/skins/default/manager.js
View file @
dacd95dd
...
...
@@ -262,6 +262,10 @@ function getCfgAttributes() {
}
function
setCfgAttributes
(
data
){
var
t
=
new
Array
(
'
cfgAuthor
'
,
'
cfgAuthorIP
'
,
'
cfgDate
'
);
if
(
data
.
cfgDate
.
match
(
/^
\d
+$/
)){
var
d
=
new
Date
(
data
.
cfgDate
*
1000
);
data
.
cfgDate
=
d
.
toLocaleString
();
}
for
(
i
in
t
){
$
(
'
#
'
+
t
[
i
]).
text
(
data
[
t
[
i
]]);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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