* Adjust for common::buildIconButton.

This commit is contained in:
tanghucheng
2023-04-18 09:46:46 +08:00
parent 14aca90bc0
commit 5667eeab9d
+3 -3
View File
@@ -1770,13 +1770,13 @@ EOF;
}
if($type == 'button')
{
if($method != 'edit' and $method != 'copy' and $method != 'delete' and ($method != 'review' and $module != 'charter'))
if($method == 'edit' or $method == 'copy' or $method == 'delete' or ($method == 'review' and $module == 'charter'))
{
return html::a($link, "<i class='$class'></i> " . "<span class='text'>{$title}</span>", $target, "class='btn btn-link $extraClass' $misc", true);
return html::a($link, "<i class='$class'></i>", $target, "class='btn btn-link $extraClass' title=\"$title\" $misc", false);
}
else
{
return html::a($link, "<i class='$class'></i>", $target, "class='btn btn-link $extraClass' title=\"$title\" $misc", false);
return html::a($link, "<i class='$class'></i> " . "<span class='text'>{$title}</span>", $target, "class='btn btn-link $extraClass' $misc", true);
}
}
else