forked from 0x2620/pandora
rename, hookup import dialog
This commit is contained in:
parent
4c1ab4b406
commit
d965eb4624
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
'use strict';
|
||||
|
||||
pandora.ui.importSubtitles = function(data) {
|
||||
pandora.ui.importAnnotations = function(data) {
|
||||
var content = Ox.Element().css({margin: '16px'}),
|
||||
file,
|
||||
height = 240,
|
||||
|
@ -26,7 +26,7 @@ pandora.ui.importSubtitles = function(data) {
|
|||
height: height,
|
||||
removeOnClose: true,
|
||||
width: width,
|
||||
title: 'Import Subtitles',
|
||||
title: 'Import Annotations',
|
||||
})
|
||||
.bindEvent({
|
||||
close: function(data) {
|
|
@ -368,6 +368,9 @@ pandora.ui.item = function() {
|
|||
find: function(data) {
|
||||
pandora.UI.set('itemFind', data.find);
|
||||
},
|
||||
importannotations: function(data) {
|
||||
pandora.ui.importAnnotations().open();
|
||||
},
|
||||
info: function(data) {
|
||||
pandora.ui.annotationDialog(data.layer).open();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue