-/**
+/*!
* JavaScript for Special:Preferences
*/
jQuery( function ( $ ) {
/**
* It uses document.getElementById for security reasons (HTML injections in $()).
*
+ * @ignore
* @param String name: the name of a tab without the prefix ("mw-prefsection-")
* @param String mode: [optional] A hash will be set according to the current
- * open section. Set mode 'noHash' to surpress this.
+ * open section. Set mode 'noHash' to surpress this.
*/
function switchPrefTab( name, mode ) {
var $tab, scrollTop;
} );
}
- /**
- * Timezone functions.
- * Guesses Timezone from browser and updates fields onchange
- */
+ // Timezone functions.
+ // Guesses Timezone from browser and updates fields onchange.
$tzSelect = $( '#mw-input-wptimecorrection' );
$tzTextbox = $( '#mw-input-wptimecorrection-other' );
}
}
- function updateTimezoneSelection () {
+ function updateTimezoneSelection() {
var minuteDiff, localTime,
type = $tzSelect.val();