summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-15 18:16:35 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-15 18:16:35 +0200
commit8da2aeec783755ebb3d45c52f85260f03f49453d (patch)
treeeb5b43752f16462f9381ac6170beb971532e6a7b /templates
parent4faac81356c070f609d80f473032a7ed5552b98a (diff)
folders can now only be create on the first level
Diffstat (limited to 'templates')
-rw-r--r--templates/part.folderdialog.php6
-rw-r--r--templates/part.folderlist.php3
2 files changed, 0 insertions, 9 deletions
diff --git a/templates/part.folderdialog.php b/templates/part.folderdialog.php
index 36a0d9633..e441e90a8 100644
--- a/templates/part.folderdialog.php
+++ b/templates/part.folderdialog.php
@@ -5,13 +5,7 @@
<td>Add new folder</td>
<td>
<div class="add_parentfolder">
- <button id="dropdownBtn" onclick="News.DropDownMenu.dropdown(this)">
- <?php echo $l->t('Choose folder'); ?>
- </button>
<input id="inputfolderid" type="hidden" name="folderid" value="0" />
- <ul class="menu" id="dropdownmenu">
- <?php echo $this->inc("part.folderlist"); ?>
- </ul>
</div>
</td>
</tr>
diff --git a/templates/part.folderlist.php b/templates/part.folderlist.php
index 09b5f8e64..f2da64737 100644
--- a/templates/part.folderlist.php
+++ b/templates/part.folderlist.php
@@ -3,11 +3,8 @@
function print_folder_list($folderlist, $depth) {
foreach($folderlist as $folder) {
echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . $folder->getName() . '</li>';
- $children = $folder->getChildren();
- print_folder_list($children, $depth+1);
}
}
-
print_folder_list($_['folderforest'], 0);
?> \ No newline at end of file