diff --git a/ui/css/conversation.css b/ui/css/conversation.css index 104e061..56db193 100644 --- a/ui/css/conversation.css +++ b/ui/css/conversation.css @@ -230,6 +230,11 @@ input#user-input:-moz-placeholder { background: #00B4A0; } +.options-list { + cursor: pointer; + text-decoration: underline; + } + .option-buttons { background-color: #8d25e8; border-radius: 6px; diff --git a/ui/js/conversation.js b/ui/js/conversation.js index 0487cb4..a5a217a 100644 --- a/ui/js/conversation.js +++ b/ui/js/conversation.js @@ -258,21 +258,21 @@ var Conversation = (function () { function getOptions(optionsList, preference) { var list = ''; var i = 0; - if (optionsList !== null) { - if (preference === 'text') { - list = ''; + } else if (preference === 'button') { + list = '
'; + for (i = 0; i < optionsList.length; i++) { + if (optionsList[i].value) { + var item = '

' + optionsList[i].label + '

'; + list += item; } } }