| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | jQuery( document ).ready( function () { |
||
| 4 | templateSelection: function (state) { |
||
| 5 | if (!state.id) { |
||
| 6 | return state.text; |
||
| 7 | } |
||
| 8 | var parentLabel = state.element.parentElement.label; |
||
| 9 | var $state = jQuery( |
||
| 10 | '<span>' + parentLabel + '-' + state.text + '</span>' |
||
| 11 | ); |
||
| 12 | return $state; |
||
| 13 | } |
||
| 14 | }); |
||
| 15 | }); |