|
@@ -158,7 +158,8 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
|
|
|
function arrayHTML(thisArray) {
|
|
|
var thisOutput = "";
|
|
|
if (thisArray.length > 0) {
|
|
|
- thisOutput += '<ul class="builder-list">\n';
|
|
|
+ thisOutput += '<div class="builder-list">\n';
|
|
|
+ thisOutput += '<ul>\n';
|
|
|
for (var i = 0; i < thisArray.length; i++) {
|
|
|
var item = thisArray[i];
|
|
|
thisOutput += '<li><strong>' + item[0] + '</strong> ';
|
|
@@ -171,7 +172,11 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
|
|
|
}
|
|
|
return thisOutput
|
|
|
}
|
|
|
- return arrayHTML(mainArray);
|
|
|
+ if (mainArray.length > 0) {
|
|
|
+ output += '<div class="builder-list">\n';
|
|
|
+ output += arrayHTML(mainArray) + '\n</div>\n';
|
|
|
+ }
|
|
|
+ return output;
|
|
|
}
|
|
|
|
|
|
// returns Markdown version of Builder content
|