mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
show number of documents per category in select menu
This commit is contained in:
parent
da4aafff86
commit
913baaa7ce
|
@ -155,7 +155,7 @@ $(document).ready( function() {
|
||||||
$options[] = array("-1", getMLText("choose_category"));
|
$options[] = array("-1", getMLText("choose_category"));
|
||||||
$options[] = array("0", getMLText("new_document_category"));
|
$options[] = array("0", getMLText("new_document_category"));
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
$options[] = array($category->getID(), htmlspecialchars($category->getName()), $selcat && $category->getID()==$selcat->getID());
|
$options[] = array($category->getID(), htmlspecialchars($category->getName()), $selcat && $category->getID()==$selcat->getID(), array(array('data-subtitle', $category->countDocumentsByCategory().' '.getMLText('documents'))));
|
||||||
}
|
}
|
||||||
$this->formField(
|
$this->formField(
|
||||||
null, //getMLText("selection"),
|
null, //getMLText("selection"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user