Commit 73536f2e authored by Aran Dunkley's avatar Aran Dunkley

debugging makeTitleVisible

parent d4a503d7
......@@ -14,7 +14,7 @@
*/
if( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' );
define( 'TREEANDMENU_VERSION','4.1.2, 2015-06-08' );
define( 'TREEANDMENU_VERSION','4.1.3, 2015-06-15' );
define( 'TREEANDMENU_TREE', 1 );
define( 'TREEANDMENU_MENU', 2 );
......
......@@ -22,7 +22,7 @@
if(typeof(title) === 'undefined') title = mw.config.get('wgTitle');
this.visit(function(node) {
var nt = $('a:first', $.parseHTML(node.title)).attr('title');
console.log(nt);
console.log(nt + ' (' + node.title + ')');
if(nt == title) {
node.makeVisible({ noAnimation: true, noEvents: true, scrollIntoView: false });
node.setActive({ noEvents: true });
......
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