fixed modal name assignment

This commit is contained in:
Victor Nguyen 2013-03-15 14:11:33 +11:00
parent c50ecaebc0
commit ce9317034d

View file

@ -47,7 +47,7 @@ exports.index = function(req, res){
vehicles.push( vehicles.push(
{ {
slug: $link.attr('href').replace(/\/vehicles\//,''), slug: $link.attr('href').replace(/\/vehicles\//,''),
name: $link.attr('title'), name: $link.text(),
img: host + $link.find('img').attr('src').split('?')[0] img: host + $link.find('img').attr('src').split('?')[0]
} }
); );