parent
0d3c0912ba
commit
04a0d9c54e
|
@ -1,12 +1,12 @@
|
|||
<div data-uri="<?php echo $this->uri; ?>"><input type="button" class="pl-waveform-cues-btn" value="Show Waveform"></input></div>
|
||||
<dl id="spl_cue_editor" class="inline-list">
|
||||
<dt><? echo _("Cue In: "); ?><span class='spl_cue_hint'><? echo _("(hh:mm:ss.t)")?></span></dt>
|
||||
<dd id="spl_cue_in_<?php echo $this->id; ?>" class="spl_cue_in">
|
||||
<dd id="spl_cue_in_<?php echo $this->id; ?>" class="spl_cue_in" data-cue-in="<?php echo $this->cueIn; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->cueIn; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<dt><? echo _("Cue Out: "); ?><span class='spl_cue_hint'><? echo _("(hh:mm:ss.t)")?></span></dt>
|
||||
<dd id="spl_cue_out_<?php echo $this->id; ?>" class="spl_cue_out">
|
||||
<dd id="spl_cue_out_<?php echo $this->id; ?>" class="spl_cue_out" data-cue-out="<?php echo $this->cueOut; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->cueOut; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
|
|
|
@ -1154,13 +1154,19 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
mod.showCuesWaveform = function(e) {
|
||||
var $el = $(e.target),
|
||||
id = $el.parents("li").attr("unqid"),
|
||||
$li = $el.parents("li"),
|
||||
id = $li.attr("unqid"),
|
||||
$parent = $el.parent(),
|
||||
uri = $parent.data("uri"),
|
||||
$html = $($("#tmpl-pl-cues").html()),
|
||||
tracks = [{
|
||||
src: uri
|
||||
}];
|
||||
}],
|
||||
cueIn = $li.find('.spl_cue_in').data("cueIn"),
|
||||
cueOut = $li.find('.spl_cue_out').data("cueOut");
|
||||
|
||||
$html.find('.editor-cue-in').val(cueIn);
|
||||
$html.find('.editor-cue-out').val(cueOut);
|
||||
|
||||
$html.on("click", ".set-cue-in", function(e) {
|
||||
var cueIn = $html.find('.audio_start').val();
|
||||
|
|
Loading…
Reference in New Issue