* improve UI for dropdown of doc create button.

This commit is contained in:
Hao Sun
2021-08-20 11:01:45 +08:00
parent d02e526dac
commit 848ef0e72b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1818,7 +1818,7 @@ class docModel extends model
$class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : '';
$icon = zget($this->config->doc->iconList, $typeKey);
$html .= "<li>";
$html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), "<i class='icon-$icon text-muted'></i> " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
$html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), "<i class='icon-$icon icon'></i> " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
$html .= "</li>";
if($typeKey == 'url') $html .= '<li class="divider"></li>';
}
@@ -1826,7 +1826,7 @@ class docModel extends model
if(common::hasPriv('doc', 'createLib'))
{
$html .= '<li class="divider"></li>';
$html .= '<li>' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), "<i class='icon-doc-lib text-muted'></i> " . $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '</li>';
$html .= '<li>' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), "<i class='icon-doc-lib icon'></i> " . $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '</li>';
}
$html .= "</ul></div>";
}
File diff suppressed because one or more lines are too long