Commit 36eedff0 authored by Aran Dunkley's avatar Aran Dunkley

debugging makeTitleVisible

parent f41dd4bf
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
if(typeof(title) === 'undefined') title = mw.config.get('wgTitle'); if(typeof(title) === 'undefined') title = mw.config.get('wgTitle');
this.visit(function(node) { this.visit(function(node) {
var nt = $('<div />').html(node.title); var nt = $('<div />').html(node.title);
nt = $('a:first', nt); nt = $('a:first', nt).attr('title');
console.log(nt + ' (' + node.title + ')'); console.log(nt + ' (' + node.title + ')');
if(nt == title) { if(nt == title) {
node.makeVisible({ noAnimation: true, noEvents: true, scrollIntoView: false }); 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