fixed render length limits on list widget

pull/263/head
Justin Richer 12 years ago
parent 757e21a722
commit d576df4b31

@ -53,7 +53,7 @@
render:function () {
this.$el.html(this.template(this.model.toJSON()));
if (this.model.get('item').length > 27) {
if (this.model.get('item').length > 30) {
this.$el.tooltip({title:this.model.get('item')});
}
return this;

@ -253,7 +253,7 @@
<!-- list widget -->
<script type="text/html" id="tmpl-list-widget-child">
<td><%=(item.length > 27) ? item.substr(0,27) + '...' : item %></td>
<td><%=(item.length > 30) ? item.substr(0,27) + '...' : item %></td>
<td><a class="btn btn-small" href="#"><i class="icon-minus-sign icon-gray"></i></a></td>
</script>

Loading…
Cancel
Save