From 79de619be477e0c2255bdb785ba407fc364c5e10 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Mon, 28 Jul 2025 02:12:21 +0300 Subject: [PATCH] change the structure of object in window.MEDIA_DATA.chapters --- templates/cms/edit_chapters.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/cms/edit_chapters.html b/templates/cms/edit_chapters.html index 4edb620d..6c1b852c 100644 --- a/templates/cms/edit_chapters.html +++ b/templates/cms/edit_chapters.html @@ -18,19 +18,19 @@ redirectUserMediaURL: "{{ media_object.user.get_absolute_url }}", chapters: [ { - id: '1', - title: 'Chapter AAA', - timestamp: 0, + name: 'Chapter AAA', + from: '00:00:00.000', + to: '00:00:01.357', }, { - id: '2', - title: 'Chapter BBB', - timestamp: 10, - }, + name: 'Chapter BBB', + from: '00:00:01.999', + to: '00:00:02.714', + }, { - id: '3', - title: 'Chapter CCC', - timestamp: 20, + name: 'Chapter CCC', + from: '00:00:02.714', + to: '00:00:03.071', }, ], };