Commit 29d2a3b3 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team
Browse files

js/builder.js rearranging sample info controls

parent 92e11d75
...@@ -429,16 +429,19 @@ Builder.prototype = { ...@@ -429,16 +429,19 @@ Builder.prototype = {
var div_point = this.build_info_line("info_point", this.m.getStrTime(this.m.t, "name") ) var div_point = this.build_info_line("info_point", this.m.getStrTime(this.m.t, "name") )
sample_div.appendChild(div_point) sample_div.appendChild(div_point)
var div_date = this.build_info_line("info_date", this.m.getStrTime(this.m.t, "sampling_date") )
div_date.className += " centered"
if (this.m.samples.order.length > 1){ if (this.m.samples.order.length > 1){
var nextTime = self.createClickableElem('span', var nextTime = self.createClickableElem('span',
[document.createTextNode(">")], [document.createTextNode(">")],
"", "",
"next_button button_right", "next_button button",
function () { function () {
self.m.nextTime(); self.m.nextTime();
} }
); );
sample_div.appendChild(nextTime) div_date.appendChild(nextTime)
if (self.m.isPlaying){ if (self.m.isPlaying){
var stop = self.createClickableElem('span', var stop = self.createClickableElem('span',
...@@ -471,10 +474,9 @@ Builder.prototype = { ...@@ -471,10 +474,9 @@ Builder.prototype = {
self.m.previousTime(); self.m.previousTime();
} }
); );
sample_div.appendChild(previousTime) div_date.insertBefore(previousTime, div_date.childNodes[0]);
} }
var div_date = this.build_info_line("info_date", this.m.getStrTime(this.m.t, "sampling_date") )
var span = self.createClickableElem('span', var span = self.createClickableElem('span',
[document.createTextNode("edit")], [document.createTextNode("edit")],
"", "",
......
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