CC-5108 Waveform Editor UI
This commit is contained in:
parent
2ba743a436
commit
872f68505b
7 changed files with 113 additions and 61 deletions
|
@ -1223,8 +1223,8 @@ var AIRTIME = (function(AIRTIME){
|
|||
width: dim.width - 100,
|
||||
height: dim.height - 100,
|
||||
buttons: [
|
||||
{text: "Cancel", click: removeDialog},
|
||||
{text: "Save", click: function() {
|
||||
{text: "Cancel", class: "btn btn-small", click: removeDialog},
|
||||
{text: "Save", class: "btn btn-small btn-inverse", click: function() {
|
||||
var json = playlistEditor.getJson(),
|
||||
offset,
|
||||
fadeIn, fadeOut,
|
||||
|
@ -1305,19 +1305,19 @@ var AIRTIME = (function(AIRTIME){
|
|||
$html.remove();
|
||||
}
|
||||
|
||||
$html.find('.editor-cue-in').val(cueIn);
|
||||
$html.find('.editor-cue-out').val(cueOut);
|
||||
$html.find('.editor-cue-in').html(cueIn);
|
||||
$html.find('.editor-cue-out').html(cueOut);
|
||||
|
||||
$html.on("click", ".set-cue-in", function(e) {
|
||||
var cueIn = $html.find('.audio_start').val();
|
||||
|
||||
$html.find('.editor-cue-in').val(cueIn);
|
||||
$html.find('.editor-cue-in').html(cueIn);
|
||||
});
|
||||
|
||||
$html.on("click", ".set-cue-out", function(e) {
|
||||
var cueOut = $html.find('.audio_end').val();
|
||||
|
||||
$html.find('.editor-cue-out').val(cueOut);
|
||||
$html.find('.editor-cue-out').html(cueOut);
|
||||
});
|
||||
|
||||
$html.dialog({
|
||||
|
@ -1328,10 +1328,10 @@ var AIRTIME = (function(AIRTIME){
|
|||
width: dim.width - 100,
|
||||
height: dim.height - 100,
|
||||
buttons: [
|
||||
{text: "Cancel", click: removeDialog},
|
||||
{text: "Save", click: function() {
|
||||
var cueIn = $html.find('.editor-cue-in').val(),
|
||||
cueOut = $html.find('.editor-cue-out').val();
|
||||
{text: "Cancel", class: "btn btn-small", click: removeDialog},
|
||||
{text: "Save", class: "btn btn-small btn-inverse", click: function() {
|
||||
var cueIn = $html.find('.editor-cue-in').html(),
|
||||
cueOut = $html.find('.editor-cue-out').html();
|
||||
|
||||
playlistEditor.stop();
|
||||
|
||||
|
|
|
@ -556,7 +556,7 @@ AudioControls.prototype.onCursorSelection = function(args) {
|
|||
*/
|
||||
AudioControls.prototype.onAudioUpdate = function(args) {
|
||||
if (this.ctrls["audio_pos"]) {
|
||||
this.ctrls["audio_pos"].value = this.cueFormatters(this.timeFormat)(args.seconds);
|
||||
this.ctrls["audio_pos"].innerHTML = this.cueFormatters(this.timeFormat)(args.seconds);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue