2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

fhemweb_datetime.js: added class attribute to input tag to get css support

git-svn-id: https://svn.fhem.de/fhem/trunk@14177 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Matscher 2017-05-03 18:09:15 +00:00
parent 2e89659ff9
commit 2c14c75299

View File

@ -11,7 +11,7 @@ FW_datetimeCreate(elName, devName, vArr, currVal, set, params, cmd)
var widgetId = "datetimepicker-"+devName+"-"+set;
var newEl = $("<div style='display:inline-block'>").get(0);
$(newEl).append('<input type="text" id="'+widgetId+'" onfocus="blur();" >');
$(newEl).append('<input type="text" class="datetimepicker-'+devName+'" id="'+widgetId+'" onfocus="blur();" >');
var inp = $(newEl).find("input");
if(elName)
$(inp).attr("name", elName);