chg: [genericElement:form] More flexible variable check
parent
543603339b
commit
d76aa04ad7
|
@ -83,7 +83,7 @@
|
||||||
$submitButtonData['ajaxSubmit'] = $ajaxSubmit;
|
$submitButtonData['ajaxSubmit'] = $ajaxSubmit;
|
||||||
}
|
}
|
||||||
$ajaxFlashMessage = '';
|
$ajaxFlashMessage = '';
|
||||||
if ($ajax) {
|
if (!empty($ajax)) {
|
||||||
$ajaxFlashMessage = sprintf(
|
$ajaxFlashMessage = sprintf(
|
||||||
'<div id="flashContainer"><div id="main-view-container">%s</div></div>',
|
'<div id="flashContainer"><div id="main-view-container">%s</div></div>',
|
||||||
$this->Flash->render()
|
$this->Flash->render()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
if ($ajax) {
|
if (!empty($ajax)) {
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
'%s',
|
'%s',
|
||||||
sprintf(
|
sprintf(
|
||||||
|
|
Loading…
Reference in New Issue