/*jshint esversion: 6 */ /** global: object_server */ /* Yuuki_Libs (c) 2020 Star Inc. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ function format2html(title, context) { return "
" + "" + title + "" + context + "
" + "Something was wrong.
"); $("#helpers").fadeIn(); }, success: function (response) { let show = ""; if (response.result.length) { response.result.forEach(element => { show += format2html( element, element ); }); } else { show += "Nothing
"; } $("#helpers").html(show); $("#helpers").fadeIn(); } }); });