Commit f41dd4bf authored by Aran Dunkley's avatar Aran Dunkley

debugging makeTitleVisible

parent 04f5ce55
......@@ -21,7 +21,8 @@
var local = this.ext.mediawiki;
if(typeof(title) === 'undefined') title = mw.config.get('wgTitle');
this.visit(function(node) {
var nt = $($.parseHTML(node.title)).find('a:first').attr('title');
var nt = $('<div />').html(node.title);
nt = $('a:first', nt);
console.log(nt + ' (' + node.title + ')');
if(nt == title) {
node.makeVisible({ noAnimation: true, noEvents: true, scrollIntoView: false });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment