Error in thread show_list fixed.

Updated jquery to 2.0.2
This commit is contained in:
Tanshu 2013-06-07 19:13:58 +05:30
parent 0ff8108ebe
commit 4629fbcacf
6 changed files with 13 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,8 @@ CACHE:
/js/angular-cookies-1.0.7.js
/js/angular-resource-1.0.7.js
/js/bootstrap.min.js
/js/jquery-2.0.1.min.js
/js/jquery-2.0.2.min.js
/js/jquery-2.0.2.min.map
/js/jquery-ui-1.10.3.custom.min.js
/js/showdown.min.js

View File

@ -20,7 +20,7 @@
<link rel="stylesheet" type="text/css" media="screen" href="/css/spinner.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="/css/chosen.css"/>
<script src="/js/jquery-2.0.1.min.js"></script>
<script src="/js/jquery-2.0.2.min.js"></script>
<script src="/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/ace/ace.js"></script>

View File

@ -130,7 +130,9 @@ def show_list(request):
thread = {'ThreadID': item.id, 'Title': item.title, 'Age': get_age(item.creation_date),
'CreationDate': item.creation_date.strftime('%d-%b-%Y %H:%M'), 'User': item.user.name,
'Priority': item.priority, 'Public': item.public, 'Tags': [], 'Posts': [], 'Subscribers': []}
last_updated = max(post.creation_date for post in item.posts) or item.creation_date
last_updated = item.creation_date
for post in item.posts:
last_updated = max(post.creation_date, last_updated)
thread['LastUpdated'] = get_age(last_updated)
for tag in item.tags: