* zin: fix project/createGuide not work on open from quick add menu in compatible mode.
This commit is contained in:
@@ -295,7 +295,8 @@ class header extends wg
|
||||
|
||||
/* Initialize the default values. */
|
||||
$showCreateList = $needPrintDivider = false;
|
||||
$modalClass = (isset($config->zin->mode) && $config->zin->mode == 'compatible') ? 'open-in-parent' : null;
|
||||
$isCompatible = isset($config->zin->mode) && $config->zin->mode == 'compatible';
|
||||
$modalClass = $isCompatible ? 'open-in-parent' : null;
|
||||
|
||||
/* Get default product id. */
|
||||
$productID = isset($_SESSION['product']) ? $_SESSION['product'] : 0;
|
||||
@@ -367,6 +368,8 @@ class header extends wg
|
||||
$createMethod = 'createGuide';
|
||||
$item['innerClass'] = $modalClass;
|
||||
$item['data-toggle'] = 'modal';
|
||||
|
||||
if($isCompatible) $item['data-type'] = 'ajax';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user