mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 01:46:38 +01:00
* Time to become our TGUI God. * Visually sprucing the copyrights. These shouldn't be ignored :) * babababa * https://github.com/tgstation/tgstation/pull/50422 * dooootdooot * Holy fuck Updates the tools folder Updates our build tooling Updates TGUI MASSIVELY I'm going to go scream in a hole now * ?? * Was it this dum thing? * orrrr * It's this isn't it * Did it manually * hubah * TGUI Changelog * oops * What if I use the original? * Lets try this again * Shit commenting out for now * asdasd * Fuck it use the old one and remember to replace later * Updates yarn.lock * Lets try something horrid * Nope it HATES THAT * fucc * The great eslinting * HOLY SHIT * Final? * ? * asd tgstation/tgstation/pull/59914 tgstation/tgstation/pull/66317 * Improved Asset handling. * Oops * Subsystem stuff * Recompiles the Changelong again. * Finally Fixed Communicators * Compiled Changelogs... AGAIN
34 lines
886 B
JavaScript
34 lines
886 B
JavaScript
function selectTextField(){
|
|
var filter_text = document.getElementById('filter');
|
|
filter_text.focus();
|
|
filter_text.select();
|
|
}
|
|
function updateSearch(){
|
|
var input_form = document.getElementById('filter');
|
|
var filter = input_form.value.toLowerCase();
|
|
input_form.value = filter;
|
|
var table = document.getElementById('searchable');
|
|
var alt_style = 'norm';
|
|
for(var i = 0; i < table.rows.length; i++){
|
|
try{
|
|
var row = table.rows[i];
|
|
if(row.className == 'title') continue;
|
|
var found=0;
|
|
for(var j = 0; j < row.cells.length; j++){
|
|
var cell = row.cells[j];
|
|
if(cell.innerText.toLowerCase().indexOf(filter) != -1){
|
|
found=1;
|
|
break;
|
|
}
|
|
}
|
|
if(found == 0) row.style.display='none';
|
|
else{
|
|
row.style.display='block';
|
|
row.className = alt_style;
|
|
if(alt_style == 'alt') alt_style = 'norm';
|
|
else alt_style = 'alt';
|
|
}
|
|
}catch(err) { }
|
|
}
|
|
}
|