This commit is contained in:
2026-01-11 19:39:55 +01:00
commit c1042c9cde
98 changed files with 9086 additions and 0 deletions

15
ts/ajax_requests.ts Normal file
View File

@@ -0,0 +1,15 @@
export function decode_entities_for_select2( encoded: any ){
let text_area = document.createElement("textarea");
text_area.innerHTML = encoded;
return text_area.value;
}
export function format_state_for_select2( state: any ){
if( !state.id )
return state.text;
return jQuery('<span>' + decode_entities_for_select2( state.text ) + '</span>');
}