Compare commits
2 commits
0ba80ada1f
...
cabcbeb35d
| Author | SHA1 | Date | |
|---|---|---|---|
| cabcbeb35d | |||
| 098d953bbc |
2 changed files with 5 additions and 1 deletions
|
|
@ -94,6 +94,8 @@ class Edit(models.Model):
|
||||||
# dont add clip if in/out are invalid
|
# dont add clip if in/out are invalid
|
||||||
if not c.annotation:
|
if not c.annotation:
|
||||||
duration = c.item.sort.duration
|
duration = c.item.sort.duration
|
||||||
|
if c.start is None or c.end is None:
|
||||||
|
return False
|
||||||
if c.start > c.end \
|
if c.start > c.end \
|
||||||
or round(c.start, 3) >= round(duration, 3) \
|
or round(c.start, 3) >= round(duration, 3) \
|
||||||
or round(c.end, 3) > round(duration, 3):
|
or round(c.end, 3) > round(duration, 3):
|
||||||
|
|
|
||||||
|
|
@ -478,7 +478,9 @@ pandora.ui.folderList = function(id, section) {
|
||||||
},
|
},
|
||||||
range: [0, 1]
|
range: [0, 1]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
that.value(item, 'items', result.data.items[0].items);
|
if(result.data.items && result.data.items.length) {
|
||||||
|
that.value(item, 'items', result.data.items[0].items);
|
||||||
|
}
|
||||||
callback();
|
callback();
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue