From 47277976c32d7d1e121970e1420a0a70041e0d93 Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Mon, 10 Apr 2017 10:35:12 +0200 Subject: [PATCH] Add support for "description list" for QS and params --- js/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 522b268..01fd63c 100644 --- a/js/main.js +++ b/js/main.js @@ -127,6 +127,7 @@ $(document).ready(function() { .clone() .addClass(param.optional ? 'fa-times' : 'fa-check') .removeClass('hidden'); + var description = param.description; // Parameter name $('') @@ -135,7 +136,7 @@ $(document).ready(function() { // Parameter description $('') - .html(param.description) + .html(Array.isArray(description) ? description.join("
") : description) .appendTo(row); // Parameter required/optional @@ -162,6 +163,7 @@ $(document).ready(function() { .clone() .addClass(param.required ? 'fa-check' : 'fa-times') .removeClass('hidden'); + var description = param.description; // Parameter name $('') @@ -170,7 +172,7 @@ $(document).ready(function() { // Parameter description $('') - .html(param.description) + .html(Array.isArray(description) ? description.join("
") : description) .appendTo(row); // Parameter required/optional