r73129 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73128‎ | r73129 | r73130 >
Date:17:22, 16 September 2010
Author:tparscal
Status:ok
Tags:
Comment:
Merged in changes from r73123
Modified paths:
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js (modified) (history)
  • /trunk/extensions/WikiEditor/tests/wikiEditor.toolbar.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/tests/wikiEditor.toolbar.js
@@ -172,7 +172,7 @@
173173 'page': 'emoticons',
174174 'character': ':))'
175175 },
176 - 'test': '*[rel=info].section *[rel=emoticons].page a[rel=":))"]',
 176+ 'test': '*[rel=info].section *[rel=emoticons].page *[rel=":))"]',
177177 'pre': 1,
178178 'post': 0
179179 },
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
@@ -150,7 +150,7 @@
151151 target += ' div.pages div[rel=' + data.page + '].page';
152152 if ( typeof data.character == 'string' ) {
153153 // Character
154 - target += ' a[rel=' + data.character + ']';
 154+ target += ' span[rel=' + data.character + ']';
155155 } else if ( typeof data.row == 'number' ) {
156156 // Table row
157157 target += ' table tr:not(:has(th)):eq(' + data.row + ')';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73123Fixed API and test to work with characters as span elements rather than a ele...tparscal17:20, 16 September 2010

Status & tagging log