Difference between revisions of "MediaWiki:Common.js"
From Testiwiki
Juha Villman (talk | contribs) (Blanked the page) |
Juha Villman (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | $j(document).ready( function() { | ||
+ | |||
+ | $j('#wpTextbox1').live('keydown', function(e) { | ||
+ | var keyCode = e.keyCode || e.which; | ||
+ | |||
+ | if (keyCode == 9) { | ||
+ | e.preventDefault(); | ||
+ | // call custom function here | ||
+ | insertTags(' ','',''); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | }); |
Revision as of 13:06, 16 January 2014
$j(document).ready( function() {
$j('#wpTextbox1').live('keydown', function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode == 9) {
e.preventDefault();
// call custom function here
insertTags(' ','','');
}
});
});