Restore element name on datepicker destruction
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Aug 2016 20:13:14 +0000 (22:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Aug 2016 20:13:22 +0000 (22:13 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js

index 028ea7f5909b52c8051279c52f862612a52b8f3d..69176de88929274c6b4d98290b979be1fe485faa 100644 (file)
@@ -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');