N.444 ... fixing regression introduced in [r4438]

SVN:trunk[4441]
This commit is contained in:
Romain Quetiez
2016-10-04 13:15:33 +00:00
parent 9dbbb8e012
commit 79d994acf7

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