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
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.importSubtitles = function(data) {
|
pandora.ui.importAnnotations = function(data) {
|
||||||
var content = Ox.Element().css({margin: '16px'}),
|
var content = Ox.Element().css({margin: '16px'}),
|
||||||
file,
|
file,
|
||||||
height = 240,
|
height = 240,
|
||||||
|
@ -26,7 +26,7 @@ pandora.ui.importSubtitles = function(data) {
|
||||||
height: height,
|
height: height,
|
||||||
removeOnClose: true,
|
removeOnClose: true,
|
||||||
width: width,
|
width: width,
|
||||||
title: 'Import Subtitles',
|
title: 'Import Annotations',
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
close: function(data) {
|
close: function(data) {
|
|
@ -368,6 +368,9 @@ pandora.ui.item = function() {
|
||||||
find: function(data) {
|
find: function(data) {
|
||||||
pandora.UI.set('itemFind', data.find);
|
pandora.UI.set('itemFind', data.find);
|
||||||
},
|
},
|
||||||
|
importannotations: function(data) {
|
||||||
|
pandora.ui.importAnnotations().open();
|
||||||
|
},
|
||||||
info: function(data) {
|
info: function(data) {
|
||||||
pandora.ui.annotationDialog(data.layer).open();
|
pandora.ui.annotationDialog(data.layer).open();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue