Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
b7f34a37
Commit
b7f34a37
authored
Jan 31, 2014
by
Kostas Papadimitriou
Committed by
Christos Stavrakakis
Mar 31, 2014
Browse files
ui: Fallback to image date if no sort metadata exists
while sorting images collection
parent
34987034
Changes
1
Show whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/models.js
View file @
b7f34a37
...
...
@@ -1965,7 +1965,8 @@
},
comparator
:
function
(
img
)
{
return
-
img
.
get_sort_order
(
"
sortorder
"
)
||
0
;
var
date
=
new
Date
(
img
.
get
(
'
created_at
'
));
return
-
img
.
get_sort_order
(
"
sortorder
"
)
||
-
date
.
getTime
();
},
parse_meta
:
function
(
img
)
{
...
...
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