make video editor handle internal links (fixes #494)

This commit is contained in:
rlx 2012-02-17 16:13:08 +00:00
commit e8f370ab7c
5 changed files with 38 additions and 36 deletions

View file

@ -258,7 +258,6 @@ Ox.AnnotationPanel = function(options, self) {
}
function insert(data) {
Ox.print('insert', data);
var id = data.id;
Ox.InsertHTMLDialog(Ox.extend({
callback: function(data) {
@ -271,14 +270,12 @@ Ox.AnnotationPanel = function(options, self) {
}
function renderEditMenu() {
Ox.print('RENDER EDIT MENU')
var annotation, annotationTitle, folder,
isDefined, isEditable, isEvent, isEventOrPlace, isPlace, isString,
key, manageTitle, type, value
if (self.options.selected) {
annotation = getAnnotation(self.options.selected);
folder = getFolder(self.options.selected);
Ox.print('>>>>?', annotation, folder, self.options.selected);
key = folder.options('id');
type = folder.options('type');
value = annotation.value;
@ -400,7 +397,6 @@ Ox.AnnotationPanel = function(options, self) {
}
if (!self.deselecting) {
self.options.selected = data.id;
Ox.print('selectAnnotation', index, data.id)
self.options.editable && renderEditMenu();
that.triggerEvent('select', data);
}
@ -417,7 +413,6 @@ Ox.AnnotationPanel = function(options, self) {
Ox.getIndexById(self.options.layers, layer) + direction,
self.options.layers.length
);
Ox.print('index', index)
self.$folder[index].selectItem(direction == 1 ? 0 : -1);
}