TracLinksPlugin: fixes#12760 "undefined"
r15658 | r16945 | |
---|---|---|
1 | 1 | /* |
2 | * Copyright (C) 2013,2016 | |
2 | * Copyright (C) 2013,2016-2017 MATOBA Akihiro <matobaa+trac-hacks@gmail.com> | |
3 | 3 | * All rights reserved. |
4 | 4 | * |
… | … | |
40 | 40 | context = $(this).parents('div.change'); |
41 | 41 | index = 1 + $("p,li", context).index(this); |
42 | name = | |
42 | name =($('.cnum', context).attr('id') || $('.change', context).attr('id')) + ";" + index; | |
43 | 43 | addAnchor(this, name); |
44 | 44 | }); |