From: Alexander Ebert Date: Fri, 12 Aug 2016 20:13:14 +0000 (+0200) Subject: Restore element name on datepicker destruction X-Git-Tag: 3.0.0_Beta_1~756 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec43681e1b5b4acd5c689a6b7046d85731df0705;p=GitHub%2FWoltLab%2FWCF.git Restore element name on datepicker destruction --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index 028ea7f590..69176de889 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -741,6 +741,7 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment elRemove(container); elAttr(element, 'type', 'date' + (data.isDateTime ? 'time' : '')); + element.name = data.shadow.name; element.value = data.shadow.value; element.removeAttribute('data-value');