Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.preview.js |
— | — | @@ -57,8 +57,7 @@ |
58 | 58 | context.$preview.find( '.wikiEditor-preview-loading' ).hide(); |
59 | 59 | context.$preview.find( '.wikiEditor-preview-contents' ) |
60 | 60 | .html( data.parse.text['*'] ) |
61 | | - .find( 'a' ) |
62 | | - .attr( 'href', '#' ); |
| 61 | + .find( 'a:not([href^=#])' ).attr( 'href', '#' ); |
63 | 62 | }, |
64 | 63 | 'json' |
65 | 64 | ); |