update sequences dialog
This commit is contained in:
parent
982cafe1fb
commit
c540f61f3d
1 changed files with 63 additions and 57 deletions
|
@ -209,7 +209,13 @@ pandora.ui.sequencesDialog = function() {
|
|||
position: item.position
|
||||
}, function(result) {
|
||||
// result.data: {hash, id, in, out}
|
||||
Ox.print('RD:::', result.data)
|
||||
if (Ox.isEmpty(result.data)) {
|
||||
result.data['in'] = item.position;
|
||||
result.data.out = item.position + 1 / fps;
|
||||
result.data.id = item.id + '/'
|
||||
+ Ox.formatNumber(result.data['in'], 3) + '-'
|
||||
+ Ox.formatNumber(result.data.out, 3)
|
||||
}
|
||||
sequence = Ox.extend({}, item, result.data);
|
||||
$clipButtons[sequence['in'] > 0 ? 'enableButton' : 'disableButton']('previous');
|
||||
$clipButtons[sequence.out < item.duration ? 'enableButton' : 'disableButton']('next');
|
||||
|
@ -238,6 +244,7 @@ pandora.ui.sequencesDialog = function() {
|
|||
});
|
||||
$innerPanel.replaceElement(0, $item);
|
||||
}
|
||||
if (sequence.hash) {
|
||||
$list = Ox.IconList({
|
||||
fixedRatio: fixedRatio,
|
||||
item: getItem,
|
||||
|
@ -272,14 +279,13 @@ pandora.ui.sequencesDialog = function() {
|
|||
$dialog[
|
||||
data.ids.length ? 'enableButton' : 'disableButton'
|
||||
]('open');
|
||||
},
|
||||
pandora_sequencesort: function(data) {
|
||||
Ox.print('SEQUENCESORT:', data)
|
||||
$list.options({sort: data.value});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$list = Ox.Element();
|
||||
$status.html('0 Clips');
|
||||
}
|
||||
$innerPanel.replaceElement(1, $list);
|
||||
Ox.print('SEQUENCE::', sequence)
|
||||
$image.attr({src: getImageURL(sequence.hash)});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue