diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 2467af61121..949d8cf846e 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -72,33 +72,36 @@ var OCdialogs = { */ form:function(fields, title, callback, modal) { var content = '
'+fields[a].text+' | '; + $.each(fields, function(index, val){ + content += ' |
'+val.text+' | '; var type=fields[a].type; + if (type == 'text' || type == 'checkbox' || type == 'password') { - content += ''; } else { content += '>'; } - } else if (type == 'text' || type == 'password' && fields[a].value) { - content += ' value="'+fields[a].value+'">'; + } else if (type == 'text' || type == 'password' && val.value) { + content += ' value="'+val.value+'">'; } } else if (type == 'select') { - content += ''; } content += ' |