forked from 0x2620/pandora
update sequences dialog
This commit is contained in:
parent
8cb6bd85ab
commit
80dbd19500
1 changed files with 24 additions and 26 deletions
|
@ -41,7 +41,6 @@ pandora.ui.sequencesDialog = function() {
|
|||
click: function(data) {
|
||||
item.position = data.id == 'previous'
|
||||
? sequence['in'] - 1 / fps : sequence.out;
|
||||
$item = null;
|
||||
getClips();
|
||||
}
|
||||
})
|
||||
|
@ -219,7 +218,6 @@ pandora.ui.sequencesDialog = function() {
|
|||
sequence = Ox.extend({}, item, result.data);
|
||||
$clipButtons[sequence['in'] > 0 ? 'enableButton' : 'disableButton']('previous');
|
||||
$clipButtons[sequence.out < item.duration ? 'enableButton' : 'disableButton']('next');
|
||||
if (!$item) {
|
||||
$item = Ox.IconList({
|
||||
fixedRatio: fixedRatio,
|
||||
item: getItem,
|
||||
|
@ -228,12 +226,13 @@ pandora.ui.sequencesDialog = function() {
|
|||
*/
|
||||
///*
|
||||
items: function(data, callback) {
|
||||
// FIXME: witout timeout, list layout is wrong
|
||||
setTimeout(function() {
|
||||
callback({
|
||||
data: {items: data.keys ? [sequence] : 1},
|
||||
status: {code: 200, text: 'ok'}
|
||||
});
|
||||
}, 250);
|
||||
}, 25);
|
||||
},
|
||||
//*/
|
||||
max: 0,
|
||||
|
@ -243,7 +242,6 @@ pandora.ui.sequencesDialog = function() {
|
|||
unique: 'id'
|
||||
});
|
||||
$innerPanel.replaceElement(0, $item);
|
||||
}
|
||||
if (sequence.hash) {
|
||||
$list = Ox.IconList({
|
||||
fixedRatio: fixedRatio,
|
||||
|
|
Loading…
Reference in a new issue