Commit 9a7f454a authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

builder.js fixed a bug where single-sample files could not display theany information

parent 739a5eb1
......@@ -488,6 +488,10 @@ Builder.prototype = {
nav_container.className += " centered inline-block_90"
nav_container.appendChild(span_date)
var play_stop_container_div = document.createElement("div")
play_stop_container_div.className = "inline-block_10"
sample_div.appendChild(play_stop_container_div)
if (this.m.samples.order.length > 1){
var nextTime = self.createClickableElem('span',
[document.createTextNode(">")],
......@@ -499,9 +503,6 @@ Builder.prototype = {
);
nav_container.appendChild(nextTime)
var play_stop_container_div = document.createElement("div")
play_stop_container_div.className = "inline-block_10"
sample_div.appendChild(play_stop_container_div)
if (self.m.isPlaying){
var stop = self.createClickableElem('div',
[document.createTextNode("s")],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment