Skip to content

Commit

Permalink
ПОФИКШЕНО
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunrise authored and Sunrise committed Dec 1, 2013
1 parent b4bd3fc commit b2b4cf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/webapp/resources/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ $(document).ready(function() {
$('<h1>').text(task.title).appendTo($insert);
$insert.append('<button data-id="' + task.id + '" class="delete-task-button" name="delete-task-button" ><img draggable="false" width="15" height="15" src="/TODO/resources/delete-icon.png"/></button>');
$insert.append('<button data-id="' + task.id + '" class="edit-task-button" name="edit-task-button" ><img draggable="false" width="15" height="15" src="/TODO/resources/edit-icon.png"/></button>');
$insert.append('<div class="width34-form-block">Автор: <strong>' + task.author.login + '</strong><br/>'
+ 'Дата создания: ' + $.datepicker.formatDate('dd.mm.yy', new Date(task.creationTime)) + '<br/>'
+ 'Дата выполнения: ' + $.datepicker.formatDate('dd.mm.yy', new Date(task.targetTime)) + '<br/>'
+ (task.completed ? 'Выполнено!' : 'Не выполнено!') + '<br/>Приоритет:' + task.priority + '<br/></div>');
$insert.append('<div class="width34-form-block">Автор:<span class="author">' + task.author.login + '</span><br/>'
+ 'Дата создания:<span class="creation-date">' + $.datepicker.formatDate('dd.mm.yy', new Date(task.creationTime)) + '</span><br/>'
+ 'Дата выполнения:<span class="target-date">' + $.datepicker.formatDate('dd.mm.yy', new Date(task.targetTime)) + '</span><br/>'
+ '<span class="completed">' + (task.completed ? 'Выполнено!' : 'Не выполнено!') + '</span><br/>Приоритет:<span class="priority">' + task.priority + '</span><br/></div>');
$('<div class="width64-form-block">').text(task.content).appendTo($insert);
$(".task-list-div[data-list-id=" + task.list.id + "]>.content-wrapper").prepend($insert);

Expand Down

0 comments on commit b2b4cf8

Please sign in to comment.