Fix bugs introduced by new http response["data"] format.
This commit is contained in:
parent
3e27e6e2e8
commit
bd27a910e1
1 changed files with 2 additions and 2 deletions
|
@ -467,11 +467,11 @@ function give_action_buttons(video_card_div)
|
|||
|
||||
function receive_action_response(response)
|
||||
{
|
||||
var video_ids = response['video_ids'];
|
||||
var video_ids = response["data"]["video_ids"];
|
||||
for (var index = 0; index < video_ids.length; index += 1)
|
||||
{
|
||||
var video_id = video_ids[index];
|
||||
var state = response['state'];
|
||||
var state = response["data"]["state"];
|
||||
var card = document.getElementById("video_card_" + video_id);
|
||||
{% for statename in all_states %}
|
||||
card.classList.remove("video_card_{{statename}}");
|
||||
|
|
Loading…
Reference in a new issue