Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
MediaWiki:Gadget-editBox.js
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes, you can click here or try one of the methods below..
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl+F5 or Ctrl+r (⌘ Command+r on a Mac)
- Google Chrome: Press Ctrl+⇧ Shift+R (⌘ Command+⇧ Shift+R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl+F5
- Konqueror: Click Reload or press F5
- Opera: Clear the cache in Tools ‣ Preferences
// <nowiki>
$( 'li#ca-edit' ).find( 'a' ).attr( 'href', $( 'li#ca-edit' ).find( 'a' ).attr( 'href' ) + '#editform' );
if ( mw.config.get( 'wgAction' ) === 'edit' ) {
var wpTextboxRowHeight = $( 'textarea#wpTextbox1' ).attr( 'rows' );
var wpTextboxRowTarget = $( 'textarea#wpTextbox1' ).text().match( /\n/g ).length + 1;
if ( wpTextboxRowTarget <= wpTextboxRowHeight ) {console.log( 'Not changing textbox height because the target height of %d is less than the current height of %d.', wpTextboxRowTarget, wpTextboxRowHeight );
// Don't make it smaller than it already is.
} else if ( wpTextboxRowTarget > 40 ) {console.log( 'Changing textbox height to 40 from %d because %d rows exceeds the max.', wpTextboxRowHeight, wpTextboxRowTarget );
wpTextboxRowHeight = 40;
} else {console.log( 'Changing textbox height to %d from %d rows.', wpTextboxRowTarget, wpTextboxRowHeight );
wpTextboxRowHeight = wpTextboxRowTarget;
}
$( 'textarea#wpTextbox1' ).attr( 'rows', wpTextboxRowHeight );
}
// </nowiki>[[Category:Gadgets]]