Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a new received item at the begining of the collection

For the purpose of the W3C gallery, we need the latest photo to be at the top.
  • Loading branch information...
commit 784189ecc860445039688fb622fe2a7746f14d4b 1 parent 281db37
@steren steren authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/sleek.js
View
2  app/sleek.js
@@ -522,7 +522,7 @@ function (Collection, DynamicContainer, Item, List, CardPanel, FadeInPanel, Fact
console.log(e.data);
var data = JSON.parse(e.data);
- section.collection.add(data, {silent: true});
+ section.collection.add(data, {silent: true, at:0});
section.view.view.update(true);
}, false);
Please sign in to comment.
Something went wrong with that request. Please try again.