r59845 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59844‎ | r59845 | r59846 >
Date:19:57, 8 December 2009
Author:tparscal
Status:ok
Tags:
Comment:
Made table of contents links in preview still work.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.preview.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.preview.js
@@ -57,8 +57,7 @@
5858 context.$preview.find( '.wikiEditor-preview-loading' ).hide();
5959 context.$preview.find( '.wikiEditor-preview-contents' )
6060 .html( data.parse.text['*'] )
61 - .find( 'a' )
62 - .attr( 'href', '#' );
 61+ .find( 'a:not([href^=#])' ).attr( 'href', '#' );
6362 },
6463 'json'
6564 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r59849UsabilityInitiative: Recombine and bump style versions for r59838, r59839, r5...catrope20:58, 8 December 2009

Status & tagging log