From 1e17102e4bc7a9626046e6f6976143e8c7db6dda Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 Feb 2013 11:38:54 +0000 Subject: [PATCH] remove unused code --- static/js/pandora/text.js | 81 --------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 static/js/pandora/text.js diff --git a/static/js/pandora/text.js b/static/js/pandora/text.js deleted file mode 100644 index c7ec7007..00000000 --- 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( - $('