on_attachments_loaded: function(attachments) {
//to display number in name if more then one attachment which has same name.
var self = this;
on_attachments_loaded: function(attachments) {
//to display number in name if more then one attachment which has same name.
var self = this;
- _.chain(attachments.reverse())
.groupBy(function(attachment) { return attachment.name})
.each(function(attachment){
if(attachment.length > 1)
.groupBy(function(attachment) { return attachment.name})
.each(function(attachment){
if(attachment.length > 1)