fixed render length limits on list widget
parent
757e21a722
commit
d576df4b31
|
@ -53,7 +53,7 @@
|
||||||
render:function () {
|
render:function () {
|
||||||
this.$el.html(this.template(this.model.toJSON()));
|
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')});
|
this.$el.tooltip({title:this.model.get('item')});
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -253,7 +253,7 @@
|
||||||
<!-- list widget -->
|
<!-- list widget -->
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-list-widget-child">
|
<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>
|
<td><a class="btn btn-small" href="#"><i class="icon-minus-sign icon-gray"></i></a></td>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue