diff --git a/frontend/api.js b/frontend/api.js index 9e9efa2fcd9c0dc56932f19e99b520d89ac52473..dc868cc775f8a7441a959e656d8feb996ef6e128 100644 --- a/frontend/api.js +++ b/frontend/api.js @@ -16,6 +16,7 @@ var old_libs = null; var old_include_builtins = -1; var old_include_core = -1; var old_include_apps = -1; +var unfold_more_information = false; // https://stackoverflow.com/a/4812022/1544337 Element.prototype.getCaretPosition = function() { @@ -752,6 +753,13 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag responsedata['suggestions'].length > 0) { par.insertBefore(makeSuggestions(responsedata['suggestions']), par.firstChild); } + + if (unfold_more_information) { + var togglers = elem.getElementsByClassName('toggler'); + for (var i=0; i