From 8e673b4d81986de66316712137891490c95149d5 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 26 Mar 2015 23:11:59 +0100 Subject: [PATCH] add placeholder for quoted printable dencoders --- dencode.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/dencode.js b/dencode.js index a19fa25..3f8faa5 100644 --- a/dencode.js +++ b/dencode.js @@ -82,6 +82,24 @@ } } }, + { + "id": "decodequotedprintable", + "name": "Decode quoted printable", + "convert": function (input) { + try { + return { + "status": "ERROR", + "content": "Sorry, not supported yet!" + }; + } catch (exception) { + return { + "status": "ERROR", + "content": "Invalid quoted printable string." + }; + } + }, + "disabled": true + }, { "id": "base64encode", "name": "Encode Base64", @@ -127,6 +145,17 @@ .replace(/\"/g, """) }; } + }, + { + "id": "encodequotedprintable", + "name": "Encode quoted printable", + "convert": function (input) { + return { + "status": "ERROR", + "content": "Sorry, not supported yet!" + }; + }, + "disabled": true } ]; @@ -140,6 +169,9 @@ for (i = 0; i < plugins.length; i++) { plugin = plugins[i]; option = optiontemplate.replace(/\{identifier\}/g, plugin.id).replace(/\{name\}/g, plugin.name); + if (plugin.disabled) { + option = $(option).attr("disabled", "disabled")[0].outerHTML; + } options += option; } template = template.replace(/\{options\}/g, options);