Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d1ffuz0r committed Dec 11, 2011
1 parent 0551704 commit 34db66a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lulz/views.py
Expand Up @@ -44,6 +44,7 @@ def fetch(request):
for job in jobs_pre:
result["jobs"].append({"id": job.id,
"name": job.name,
"category": job.category.id,
"desc": escape(job.desc),
"likes": job.likes,
"date": job.date.__str__(),
Expand Down
4 changes: 4 additions & 0 deletions public/static/js/lol.js
Expand Up @@ -64,13 +64,16 @@ $(document).ready(function()
{
$("#main").empty();
total = 0;

if(res.jobs.length)
{
$.each(res.jobs, function(index, job)
{
var html = '';
var d = new Date(job.date);
var m = parseInt(d.getMonth());

html += '<article>';
if(total > 9)
{
html += '<div class="cat_' + job.category + ' ' + total + ' hidden">';
Expand All @@ -88,6 +91,7 @@ $(document).ready(function()
html += '<span class="date">Рейтинг: ' + job.likes + '</span>';
html += '</p>';
html += '</div>';
html += '</article>';

$("#main").append(html);

Expand Down

0 comments on commit 34db66a

Please sign in to comment.