hide some things

This commit is contained in:
Sanj 2011-07-11 01:16:41 +05:30
parent c745b00704
commit d0a54e563b
2 changed files with 3 additions and 1 deletions

View File

@ -399,7 +399,7 @@ def category_json(request):
if request.GET: if request.GET:
catid = request.GET['id'] catid = request.GET['id']
typ = request.GET.get('type', 'image') typ = request.GET.get('type', 'image')
resources = File.objects.filter(categories__id=catid, type=typ) resources = File.objects.filter(categories__id=catid, type=typ).exclude(private=True)
rList = [] rList = []
for r in resources: for r in resources:
# these should not be here # these should not be here

View File

@ -247,8 +247,10 @@
<select id="typeSelect" class="binSelect" name="typeSelect"> <select id="typeSelect" class="binSelect" name="typeSelect">
<option value="0">Type</option> <option value="0">Type</option>
<option value="image">Images</option> <option value="image">Images</option>
<!--
<option value="audio">Audio</option> <option value="audio">Audio</option>
<option value="video">Video</option> <option value="video">Video</option>
-->
<option value="text">Text</option> <option value="text">Text</option>
</select> </select>
<div style="clear:both;"></div> <div style="clear:both;"></div>