Error in thread show_list fixed.
Updated jquery to 2.0.2
This commit is contained in:
parent
0ff8108ebe
commit
4629fbcacf
File diff suppressed because one or more lines are too long
6
brewman/brewman/static/js/jquery-2.0.2.min.js
vendored
Normal file
6
brewman/brewman/static/js/jquery-2.0.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
brewman/brewman/static/js/jquery-2.0.2.min.map
Normal file
1
brewman/brewman/static/js/jquery-2.0.2.min.map
Normal file
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user