From ec43681e1b5b4acd5c689a6b7046d85731df0705 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 12 Aug 2016 22:13:14 +0200 Subject: [PATCH] Restore element name on datepicker destruction --- wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js | 1 + 1 file changed, 1 insertion(+) 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'); -- 2.20.1