diff --git a/customprompts/mzta-custom-prompts.css b/customprompts/mzta-custom-prompts.css
index c785f153..cf668e15 100644
--- a/customprompts/mzta-custom-prompts.css
+++ b/customprompts/mzta-custom-prompts.css
@@ -82,4 +82,9 @@ table td.properties{
#formNew{
display: none;
+}
+
+.text_output{
+ width: 100%;
+ height: 9em;
}
\ No newline at end of file
diff --git a/customprompts/mzta-custom-prompts.js b/customprompts/mzta-custom-prompts.js
index 3c2eef1f..acb8447f 100644
--- a/customprompts/mzta-custom-prompts.js
+++ b/customprompts/mzta-custom-prompts.js
@@ -27,60 +27,60 @@ var idnumMax = 0;
document.addEventListener('DOMContentLoaded', async () => {
let options = {
valueNames: [ { data: ['idnum'] }, 'is_default', 'id', 'name', 'text', 'type', 'action', 'position_compose', 'position_display', { name: 'need_selected', attr: 'checked_val'}, { name: 'need_signature', attr: 'checked_val'}, { name: 'need_custom_text', attr: 'checked_val'}, { name: 'enabled', attr: 'checked_val'} ],
- item: function(values) { //TODO: manage ACTION edit with the select
+ item: function(values) {
let type_output = '';
switch(String(values.type)){
case "0":
- type_output = `__MSG_customPrompts_add_to_menu_always__`;
+ type_output = `__MSG_customPrompts_add_to_menu_always__`;
break;
case "1":
- type_output = `__MSG_customPrompts_add_to_menu_reading__`;
+ type_output = `__MSG_customPrompts_add_to_menu_reading__`;
break;
case "2":
- type_output = `__MSG_customPrompts_add_to_menu_composing__`;
+ type_output = `__MSG_customPrompts_add_to_menu_composing__`;
break;
}
let action_output = '';
switch(String(values.action)){
case "0":
- action_output = `__MSG_customPrompts_close_button__`;
+ action_output = `__MSG_customPrompts_close_button__`;
break;
case "1":
- action_output = `__MSG_customPrompts_save_button__`;
+ action_output = `__MSG_customPrompts_save_button__`;
break;
case "2":
- action_output = `__MSG_customPrompts_do_reply__`;
+ action_output = `__MSG_customPrompts_do_reply__`;
break;
}
//console.log('>>>>>>>>>>>>> action_output: ' + JSON.stringify(action_output));
let output = `
- |
- |
- |
- ` + ((values.is_default == 1) ? type_output :
- ` |