| 1 |
/* $Id: helper.js,v 1.20.2.3 2009/09/28 12:05:46 toddy Exp $
|
| 2 |
*
|
| 3 |
* Copyright © 2006-2009 Tobias Quathamer <t.quathamer@gmx.net>
|
| 4 |
*
|
| 5 |
* This file is part of the Drupal Weather module.
|
| 6 |
*
|
| 7 |
* Weather is free software; you can redistribute it and/or modify
|
| 8 |
* it under the terms of the GNU General Public License as published by
|
| 9 |
* the Free Software Foundation; either version 2 of the License, or
|
| 10 |
* (at your option) any later version.
|
| 11 |
*
|
| 12 |
* Weather is distributed in the hope that it will be useful,
|
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 15 |
* GNU General Public License for more details.
|
| 16 |
*
|
| 17 |
* You should have received a copy of the GNU General Public License
|
| 18 |
* along with Weather; if not, write to the Free Software
|
| 19 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 20 |
*/
|
| 21 |
|
| 22 |
Drupal.behaviors.weather_place_update = function() {
|
| 23 |
// Update the ICAO and realname textfields after the place has changed
|
| 24 |
$('#edit-place').change(function() {
|
| 25 |
$('#edit-icao').val(this.options[this.selectedIndex].value);
|
| 26 |
$('#edit-real-name').val(this.options[this.selectedIndex].text);
|
| 27 |
});
|
| 28 |
}
|