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) {
|
click: function(data) {
|
||||||
item.position = data.id == 'previous'
|
item.position = data.id == 'previous'
|
||||||
? sequence['in'] - 1 / fps : sequence.out;
|
? sequence['in'] - 1 / fps : sequence.out;
|
||||||
$item = null;
|
|
||||||
getClips();
|
getClips();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -219,7 +218,6 @@ pandora.ui.sequencesDialog = function() {
|
||||||
sequence = Ox.extend({}, item, result.data);
|
sequence = Ox.extend({}, item, result.data);
|
||||||
$clipButtons[sequence['in'] > 0 ? 'enableButton' : 'disableButton']('previous');
|
$clipButtons[sequence['in'] > 0 ? 'enableButton' : 'disableButton']('previous');
|
||||||
$clipButtons[sequence.out < item.duration ? 'enableButton' : 'disableButton']('next');
|
$clipButtons[sequence.out < item.duration ? 'enableButton' : 'disableButton']('next');
|
||||||
if (!$item) {
|
|
||||||
$item = Ox.IconList({
|
$item = Ox.IconList({
|
||||||
fixedRatio: fixedRatio,
|
fixedRatio: fixedRatio,
|
||||||
item: getItem,
|
item: getItem,
|
||||||
|
@ -228,12 +226,13 @@ pandora.ui.sequencesDialog = function() {
|
||||||
*/
|
*/
|
||||||
///*
|
///*
|
||||||
items: function(data, callback) {
|
items: function(data, callback) {
|
||||||
|
// FIXME: witout timeout, list layout is wrong
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
callback({
|
callback({
|
||||||
data: {items: data.keys ? [sequence] : 1},
|
data: {items: data.keys ? [sequence] : 1},
|
||||||
status: {code: 200, text: 'ok'}
|
status: {code: 200, text: 'ok'}
|
||||||
});
|
});
|
||||||
}, 250);
|
}, 25);
|
||||||
},
|
},
|
||||||
//*/
|
//*/
|
||||||
max: 0,
|
max: 0,
|
||||||
|
@ -243,7 +242,6 @@ pandora.ui.sequencesDialog = function() {
|
||||||
unique: 'id'
|
unique: 'id'
|
||||||
});
|
});
|
||||||
$innerPanel.replaceElement(0, $item);
|
$innerPanel.replaceElement(0, $item);
|
||||||
}
|
|
||||||
if (sequence.hash) {
|
if (sequence.hash) {
|
||||||
$list = Ox.IconList({
|
$list = Ox.IconList({
|
||||||
fixedRatio: fixedRatio,
|
fixedRatio: fixedRatio,
|
||||||
|
|
Loading…
Reference in a new issue