diff options
author | Matt Friedman <maf675@gmail.com> | 2014-04-01 17:58:56 -0700 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2014-04-01 17:58:56 -0700 |
commit | 0f3e6ca67665b274156d87ff80472346203e5bdd (patch) | |
tree | af41b8f62282b5863af62c80e28656b9a5dedf2e /phpBB/assets | |
parent | 5a3d4109bbad42367d363b616e5a705ee01388e9 (diff) | |
download | forums-0f3e6ca67665b274156d87ff80472346203e5bdd.tar forums-0f3e6ca67665b274156d87ff80472346203e5bdd.tar.gz forums-0f3e6ca67665b274156d87ff80472346203e5bdd.tar.bz2 forums-0f3e6ca67665b274156d87ff80472346203e5bdd.tar.xz forums-0f3e6ca67665b274156d87ff80472346203e5bdd.zip |
[ticket/12342] Use prop() instead of attr() for boolean properties
PHPBB3-12342
Diffstat (limited to 'phpBB/assets')
-rw-r--r-- | phpBB/assets/javascript/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 4657af90ab..aa9dc9af82 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -431,14 +431,14 @@ phpbb.timezoneSwitchDate = function(keepSelection) { if ($("#timezone > optgroup[label='" + $('#tz_date').val() + "'] > option").size() === 1) { // If there is only one timezone for the selected date, we just select that automatically. - $("#timezone > optgroup[label='" + $('#tz_date').val() + "'] > option:first").attr('selected', true); + $("#timezone > optgroup[label='" + $('#tz_date').val() + "'] > option:first").prop('selected', true); keepSelection = true; } if (typeof keepSelection !== 'undefined' && !keepSelection) { var timezoneOptions = $('#timezone > optgroup option'); if (timezoneOptions.filter(':selected').length <= 0) { - timezoneOptions.filter(':first').attr('selected', true); + timezoneOptions.filter(':first').prop('selected', true); } } }; |