(Retrofit from trunk) N.444 ... fixing regression introduced in [r4438]

SVN:2.3[4442]
This commit is contained in:
Romain Quetiez
2016-10-04 13:17:32 +00:00
parent bbcd1ef22c
commit 7d774c7c88

View File

@@ -203,7 +203,8 @@ EOF
$this->s_content = $this->m_oTabs->RenderIntoContent($this->s_content, $this);
// Additional UI widgets to be activated inside the ajax fragment
if ($this->sContentType == 'text/html')
// Important: Testing the content type is not enough because some ajax handlers have not correctly positionned the flag (e.g json response corrupted by the script)
if (($this->sContentType == 'text/html') && (preg_match('/class="date-pick"/', $this->s_content) || preg_match('/class="datetime-pick"/', $this->s_content)) )
{
$this->add_ready_script(
<<<EOF