diff --git a/static/js/pandora/text.js b/static/js/pandora/text.js deleted file mode 100644 index c7ec7007f..000000000 --- a/static/js/pandora/text.js +++ /dev/null @@ -1,81 +0,0 @@ -'use strict'; - -// FIXME: REMOVE - -pandora.ui.text = function() { - var ui = pandora.user.ui, - canEdit = pandora.site.capabilities.canEditSitePages[pandora.user.level], - that, - text, - $text; - - getText(ui.text); - - that = Ox.Element() - .bindEvent({ - pandora_text: function(data) { - if (ui.text != text) { - text = ui.text; - getText(ui.text); - } - } - }); - - function getText(id) { - pandora.api.getText({id: id}, function(result) { - if (!result.data) { - pandora.UI.set({text: ''}); - } else if (result.data.type == 'pdf') { - $text && $text.remove(); - $text = Ox.Element().appendTo(that); - if(result.data.available) { - $text.append( - $('