Commit Graph

26 Commits

Author SHA1 Message Date
6fa0604b07 Refactor task_open/shot_open into item_open
Also renamed task-details div to item-details div. Much nicer and generic.

Thanks a lot to Dr. Sybren for the code review and unlimited support <3
2016-09-23 14:53:03 +02:00
3925c044d5 Added task deletion. GUI still ugly, though. 2016-09-23 13:58:14 +02:00
314156ca1e ReferenceError'ised two more JS throw statements 2016-09-23 11:50:02 +02:00
b3f4e8f7eb Nicer js check 2016-09-23 10:45:31 +02:00
e6e03125f7 Made shot and task links real links with JS click handlers.
This allows "open in new window", while still using XHR for regular clicks.
2016-09-23 10:44:27 +02:00
78111968ab Added project URL to body dataset.
This can be accessed using ProjectUtils.projectUrl(), requires Pillar
91e3ec659f68.
2016-09-23 10:44:27 +02:00
72a25434ea Stricter parameter checking in JavaScript. 2016-09-23 10:43:18 +02:00
498e1d5ecc Added etag checking when saving tasks & shots. Still a bit rough.
Needs nicer user interface stuff for explaining what's going on.
2016-09-23 09:36:27 +02:00
cb24b313d0 Add shot status indicator on the left 2016-09-22 21:26:56 +02:00
1b4cd09281 Added 'type' to options when saving form, for status-bar details
Also fixed the title of the header. It was removing the status-bar when setting "Shot details"
2016-09-22 17:46:17 +02:00
0767463ead Added /attract/<project_url>/shots/<shot-id> endpoint 2016-09-22 17:25:55 +02:00
85c7908ac6 Shots view: set task as active when selecting it 2016-09-22 17:09:43 +02:00
e2db647c20 Tweaks to flash-on/off 2016-09-22 16:43:19 +02:00
a786fc3b3d Some tweaks for shot editing 2016-09-22 15:44:24 +02:00
b5d335672e Added shot editing. 2016-09-22 15:29:18 +02:00
1e72d0425e Missed one $(task) → $task 2016-09-22 11:24:45 +02:00
6f4a5e17fa Shot list: show updated task name in shot list after editing task. 2016-09-22 11:08:56 +02:00
c4c6f6ccad Task edit: Using actually saved data to update the form.
Instead of just copying the form data, we now use the data returned from
the server.

Also, don't use $(task + ' span.name'), just use $(task).find('span.name').
This is faster, and allows us to save $(task) in a variable to make it
even faster still.
2016-09-22 11:06:00 +02:00
62b72bfbb1 Allow task creation with parent.
The parent (shot_id in this case) is passed to the task creation end-point.
Also, the task type is now passed as form parameter, rather than on the
URL.
2016-09-22 10:34:51 +02:00
00da55045a Be more defensive in parameter checking. 2016-09-22 09:27:28 +02:00
fb6fa299f1 Move Tasks JS to layout, since we use it everywhere 2016-09-21 19:40:04 +02:00
4b1a52f26e Replace Status underscore and minor style tweaks 2016-09-21 15:47:31 +02:00
ba916412b6 Use responseText for fail error 2016-09-21 15:14:49 +02:00
38703bf583 Tasks Index for a Project
Work in progress
2016-09-21 14:12:16 +02:00
008ffa0aa4 Show error when saving task 2016-09-20 17:40:08 +02:00
5543d75101 Editing tasks works, still needs refactoring & unittests 2016-09-08 11:24:58 +02:00