User talk:Bea Linden

From Second Life Wiki
Jump to navigation Jump to search

Favorite

You are my favorite Linden ever, I've wanted collapsible tables for the longest time (WEB-235). But would you mind adding the following to MediaWiki:Common.js so that when you toggle a collapsible table it won't jump to the top of the article?

<javascript>function killEvt( evt ) { evt = evt || window.event || window.Event; // W3C, IE, Netscape if ( typeof ( evt.preventDefault ) != 'undefined' ) { evt.preventDefault(); // Don't follow the link evt.stopPropagation(); } else { evt.cancelBubble = true; // IE } return false; // Don't follow the link (IE) }</javascript> -- Strife (talk|contribs) 12:06, 16 November 2010 (UTC)

Hey Strife, I added the code you requested to Mediawiki:Common.js (for the collapsible tables). Let me know if it doesn't work as expected. -Bea Linden

Works perfectly. I'm using it to redesign the PrimitiveParams documentation (the most visited and notorious LSL article), the prototype has gotten nothing but good reviews ^_^ Thanks for making it possible. -- Strife (talk|contribs) 05:01, 18 November 2010 (UTC)