much I have to learn, fortunately I'm willing to... Sorry Magnus, how do add these onload handler and click handler, if I may?
2010/1/18 Magnus Manske <[email protected]> > On Mon, Jan 18, 2010 at 4:35 PM, Tech Geek <[email protected]> > wrote: > > Magnus, > > > >>A simple JavaScript could check if there's ~~~ in the edit box when > >>saving a talk page, and alert you if there's not. > > Looks like this might work. Where do you exactly put this javascript? Do > I > > have to install some kind of extension which will let me add my own > > javascript or should I modify the main mediawiki files? > > No extension needed, just edit [[MediaWiki:Common.js]]. Example: > http://en.wikipedia.org/wiki/MediaWiki:Common.js > > Add an onload handler that checkes if you're editing a talk page, then > add a click handler on the save button. That handler then checks the > edit box for "~~~" and throws a dialog like "No signature detected, > save anyway?". > > Cheers, > Magnus > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > -- {+}Nevinho Venha para o Movimento Colaborativo http://sextapoetica.com.br !! _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
