integration/js/tangle.js
changeset 63 55b26d1c32ef
parent 28 a0a048ff33a1
child 74 22aca5b735a2
equal deleted inserted replaced
62:42919bf5d4e1 63:55b26d1c32ef
    52             form.find('.end').attr('data-milliseconds',chapterData.end);
    52             form.find('.end').attr('data-milliseconds',chapterData.end);
    53         }
    53         }
    54     }
    54     }
    55 
    55 
    56     function updateChapterDuration(val, chapterBefore, chapterAfter){
    56     function updateChapterDuration(val, chapterBefore, chapterAfter){
    57         if (val<chapterAfter.end && val>chapterBefore.begin) {
    57         if (val<=chapterAfter.end && val>=chapterBefore.begin) {
    58             chapterAfter.setBegin(val);
    58             chapterAfter.setBegin(val);
    59             chapterBefore.setEnd(val);
    59             chapterBefore.setEnd(val);
    60 
    60 
    61             updateRenderChapter(chapterAfter);
    61             updateRenderChapter(chapterAfter);
    62             updateRenderChapter(chapterBefore);
    62             updateRenderChapter(chapterBefore);