From d965eb4624dfd9a6da076406a0ec94dbbb255b67 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 14 Feb 2012 19:06:25 +0000 Subject: [PATCH] rename, hookup import dialog --- .../js/pandora/{importSubtitles.js => importAnnotations.js} | 4 ++-- static/js/pandora/item.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) rename static/js/pandora/{importSubtitles.js => importAnnotations.js} (97%) diff --git a/static/js/pandora/importSubtitles.js b/static/js/pandora/importAnnotations.js similarity index 97% rename from static/js/pandora/importSubtitles.js rename to static/js/pandora/importAnnotations.js index 5873ace0c..fedb466f7 100644 --- a/static/js/pandora/importSubtitles.js +++ b/static/js/pandora/importAnnotations.js @@ -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) { diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 70c4fa009..f954c5d6b 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -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(); },