Browse files

added class instead of html

  • Loading branch information...
1 parent 604d400 commit 280f4949a31ff6727ed63b59bcf9519c9de2d991 @nicolaslara nicolaslara committed Feb 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 geotagging/static/js/app/MapView.js
View
2 geotagging/static/js/app/MapView.js
@@ -110,8 +110,8 @@ $$.MapView = Backbone.View.extend({
item.style.graphicWidth = 27;
layer.collection.add(new $$.Spot(item));
layer.collection.remove(spot);
+ $('.map-legend#'+item.id).attr("class", "map-legend number"+(numbering < 10 ? "0"+numbering : numbering));
numbering += 1;
- $('.map-legend#'+item.id).html(item.number)
});
});
}else if ( options.collection ){

0 comments on commit 280f494

Please sign in to comment.