]> git.pld-linux.org Git - packages/dokuwiki-plugin-titlesanchorlink.git/blob - heading-link.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dokuwiki-plugin-titlesanchorlink.git] / heading-link.patch
1 --- titlesanchorlink/script.js~ 2013-03-05 12:27:46.000000000 +0200
2 +++ titlesanchorlink/script.js  2015-09-28 16:36:26.690647453 +0300
3 @@ -1,6 +1,10 @@
4  jQuery(function () {
5         jQuery(':header').each(function(){
6                 var id = jQuery(this).attr('id');
7 +               if (!id) {
8 +                       // https://github.com/Dric/dokuwiki-titlesanchorlink/issues/1
9 +                       return;
10 +               }
11                 var name = jQuery(this).text();
12                 jQuery(this).append('<a title="Link to '+name+'" id="anchor__'+id+'" class="__anchor" href="#'+id+'"><img src="'+DOKU_BASE+'lib/plugins/titlesanchorlink/images/anchor.png" class="__anchor_icon" /></a>');
13         });
This page took 0.102417 seconds and 4 git commands to generate.