add placeholder for quoted printable dencoders
This commit is contained in:
		
							parent
							
								
									46a6e1bbec
								
							
						
					
					
						commit
						8e673b4d81
					
				
					 1 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								dencode.js
									
										
									
									
									
								
							
							
						
						
									
										32
									
								
								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", | 			"id": "base64encode", | ||||||
| 			"name": "Encode Base64", | 			"name": "Encode Base64", | ||||||
|  | @ -127,6 +145,17 @@ | ||||||
| 						.replace(/\"/g, """) | 						.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++) { | 	for (i = 0; i < plugins.length; i++) { | ||||||
| 		plugin = plugins[i]; | 		plugin = plugins[i]; | ||||||
| 		option = optiontemplate.replace(/\{identifier\}/g, plugin.id).replace(/\{name\}/g, plugin.name); | 		option = optiontemplate.replace(/\{identifier\}/g, plugin.id).replace(/\{name\}/g, plugin.name); | ||||||
|  | 		if (plugin.disabled) { | ||||||
|  | 			option = $(option).attr("disabled", "disabled")[0].outerHTML; | ||||||
|  | 		} | ||||||
| 		options += option; | 		options += option; | ||||||
| 	} | 	} | ||||||
| 	template = template.replace(/\{options\}/g, options); | 	template = template.replace(/\{options\}/g, options); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue