mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
search widget : widget date bugfix when enter key is used to submit
SVN:b1162[5534]
This commit is contained in:
@@ -102,6 +102,7 @@ $(function()
|
||||
// Apply if enter key
|
||||
if(oEvent.key === 'Enter')
|
||||
{
|
||||
me.val(me.val().trim());
|
||||
me._apply();
|
||||
}
|
||||
});
|
||||
@@ -136,7 +137,14 @@ $(function()
|
||||
|
||||
if (bSetDate)
|
||||
{
|
||||
selectElem[oInputParam.x_picker]('setDate', null);
|
||||
var sDate = selectElem.val().trim();
|
||||
if ('' == sDate)
|
||||
{
|
||||
selectElem[oInputParam.x_picker]('setDate', null);
|
||||
} else
|
||||
{
|
||||
selectElem[oInputParam.x_picker]('setDate', sDate);
|
||||
}
|
||||
}
|
||||
|
||||
if (sSyncedWith != undefined)
|
||||
|
||||
Reference in New Issue
Block a user