From 86db109fc7ac7b499fd25ad21410cb0c50d5ca14 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 2 Jun 2013 16:18:07 +0200 Subject: [PATCH] Fixed HTML5 issue --- com.woltlab.wcf/template/search.tpl | 4 ++-- wcfsetup/install/files/js/WCF.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/template/search.tpl b/com.woltlab.wcf/template/search.tpl index 86e58b73fb..dc94079699 100644 --- a/com.woltlab.wcf/template/search.tpl +++ b/com.woltlab.wcf/template/search.tpl @@ -61,8 +61,8 @@
- - + + {event name='periodOptions'}
diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 7acff8e07d..b345c07cdc 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2561,6 +2561,9 @@ WCF.Date.Picker = { // update $input $input.prop('type', 'text').addClass('jsDatePicker'); + // set placeholder + if ($input.data('placeholder')) $input.attr('placeholder', $input.data('placeholder')); + // insert a hidden element representing the actual date $input.removeAttr('name'); $input.before(''); -- 2.20.1