Index: trunk/phase3/skins/common/edit.js |
— | — | @@ -146,10 +146,11 @@ |
147 | 147 | var editBox = document.getElementById( 'wpTextbox1' ); |
148 | 148 | var scrollTop = document.getElementById( 'wpScrolltop' ); |
149 | 149 | var editForm = document.getElementById( 'editform' ); |
150 | | - if( editBox && scrollTop ) { |
| 150 | + if( editForm && editBox && scrollTop ) { |
151 | 151 | if( scrollTop.value ) |
152 | 152 | editBox.scrollTop = scrollTop.value; |
153 | 153 | addHandler( editForm, 'submit', function() { |
| 154 | + alert(1); |
154 | 155 | document.getElementById( 'wpScrolltop' ).value = document.getElementById( 'wpTextbox1' ).scrollTop; |
155 | 156 | } ); |
156 | 157 | } |