Warning: session_start(): open(/var/lib/php/sessions/sess_ehehd3jn40icqu24biefgep07p, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sS gazelleBot_suggestPostTypes(Cl postTypes, SS jsonData, bool alwaysShowText) {
S f_type = cast jsonData.get("f_type");
ret !alwaysShowText && empty(postTypes) ? "" : "Suggested post types: " +
joinWithCommaOr("-", safeMap(type -> {
bool selected = eq(f_type, type);
if (selected) ret span_title("Post type is already selected", b(htmlEncode2(type)));
ret ahref_js([[
const selectize = $("select[name=f_type]").data('selectize');
console.log("selectize: " + selectize);
selectize.setValue(]] + jsQuote(type) + ");",
htmlEncode2(type), title := "Click to accept suggestion");
}, takeFirst(3, postTypes)));
}