New 0001893: Date remplacement auto des séparateurs
This commit is contained in:
parent
a2a31c8b3f
commit
d13d29f623
2 changed files with 16 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ class IDate extends HtmlInput
|
|||
return $this->display();
|
||||
if ($this->id=="") $this->id=self::generate_id($this->name);
|
||||
$autofocus=($this->autofocus)?" autofocus ":"";
|
||||
|
||||
$onchange='onchange="format_date(this)"';
|
||||
$r=sprintf('
|
||||
<input type="text" name="%s" id="%s"
|
||||
class="input_text"
|
||||
|
|
@ -140,14 +140,17 @@ class IDate extends HtmlInput
|
|||
value ="%s"
|
||||
placeholder="%s"
|
||||
title="%s"
|
||||
pattern="[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}"
|
||||
pattern="[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}"
|
||||
%s
|
||||
/>
|
||||
<span class="smallbutton icon"
|
||||
id="%s_trigger"
|
||||
/>
|
||||

|
||||
</span>
|
||||
',$this->name,$this->id,$this->value,$this->placeholder,$this->title,$this->id
|
||||
',$this->name,$this->id,$this->value,$this->placeholder,$this->title,
|
||||
$onchange,
|
||||
$this->id
|
||||
);
|
||||
// @see calendar-setup.js
|
||||
$r.=sprintf('<script type="text/javascript">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue