update sequences dialog

This commit is contained in:
rolux 2012-06-16 14:21:32 +00:00
parent 982cafe1fb
commit c540f61f3d

View file

@ -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)});
});
});