Index: trunk/phase3/skins/common/prefs.js |
— | — | @@ -14,8 +14,8 @@ |
15 | 15 | }; |
16 | 16 | |
17 | 17 | window.timezoneSetup = function() { |
18 | | - var tzSelect = document.getElementById( 'mw-input-timecorrection' ); |
19 | | - var tzTextbox = document.getElementById( 'mw-input-timecorrection-other' ); |
| 18 | + var tzSelect = document.getElementById( 'mw-input-wptimecorrection' ); |
| 19 | + var tzTextbox = document.getElementById( 'mw-input-wptimecorrection-other' ); |
20 | 20 | |
21 | 21 | if ( tzSelect && tzTextbox ) { |
22 | 22 | addHandler( tzSelect, 'change', function( e ) { updateTimezoneSelection( false ); } ); |
— | — | @@ -40,8 +40,8 @@ |
41 | 41 | }; |
42 | 42 | |
43 | 43 | window.guessTimezone = function() { |
44 | | - var textbox = document.getElementById( 'mw-input-timecorrection-other' ); |
45 | | - var selector = document.getElementById( 'mw-input-timecorrection' ); |
| 44 | + var textbox = document.getElementById( 'mw-input-wptimecorrection-other' ); |
| 45 | + var selector = document.getElementById( 'mw-input-wptimecorrection' ); |
46 | 46 | |
47 | 47 | selector.value = 'other'; |
48 | 48 | textbox.value = fetchTimezone(); |
— | — | @@ -50,13 +50,13 @@ |
51 | 51 | }; |
52 | 52 | |
53 | 53 | window.updateTimezoneSelection = function( force_offset ) { |
54 | | - var selector = document.getElementById( 'mw-input-timecorrection' ); |
| 54 | + var selector = document.getElementById( 'mw-input-wptimecorrection' ); |
55 | 55 | |
56 | 56 | if ( selector.value == 'guess' ) { |
57 | 57 | return guessTimezone(); |
58 | 58 | } |
59 | 59 | |
60 | | - var textbox = document.getElementById( 'mw-input-timecorrection-other' ); |
| 60 | + var textbox = document.getElementById( 'mw-input-wptimecorrection-other' ); |
61 | 61 | var localtimeHolder = document.getElementById( 'wpLocalTime' ); |
62 | 62 | var servertime = document.getElementsByName( 'wpServerTime' )[0].value; |
63 | 63 | var minDiff = 0; |