Unnamed Fossil Project

Check-in [f120275739]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When returning to not being filtered by typing, go back to honoring the RGY selector buttons at the top.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256:f1202757399a2dcbd2a3fb3b2ca631797081827a2bb6a74ba5938be01cf56e97
User & Date: vandys 2019-07-24 16:49:43
Context
2019-07-24
16:49
When returning to not being filtered by typing, go back to honoring the RGY selector buttons at the top. Leaf check-in: f120275739 user: vandys tags: trunk
2019-07-13
16:35
Keep old state of R/G/Y toggles. Wake and refresh XHR once/minute to keep NAT alive. check-in: 9a6f41336a user: vandys tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/shopr.js.

415
416
417
418
419
420
421
422






423
424
425





426
427
428
429
430
431
432
433
434
435
436
437
// Note, our search is case insensitive, but we keep the input in
//  its typed case, so that if they're entering a new item name it
//  can be added in the original input format.
function update_filter() {
    if ((cur_names == null) || (cur_names.items.length == 0)) {
	return;
    }







    // Adjust what's hidden based on latest input
    let ifv = null;
    if (ifilter.value) {





	ifv = ifilter.value.toLowerCase();
    }
    let showing = null;
    for (let i of cur_names.items) {
	if ((ifv == null) || i.name.toLowerCase().includes(ifv)) {
	    showing = "inline";
	} else {
	    showing = "none";
	}

	// Update display attribute
	for (let e of i.elems) {








>
>
>
>
>
>

<
<
>
>
>
>
>
|
<


|







415
416
417
418
419
420
421
422
423
424
425
426
427
428
429


430
431
432
433
434
435

436
437
438
439
440
441
442
443
444
445
// Note, our search is case insensitive, but we keep the input in
//  its typed case, so that if they're entering a new item name it
//  can be added in the original input format.
function update_filter() {
    if ((cur_names == null) || (cur_names.items.length == 0)) {
	return;
    }

    // If returning to no filter, use general display code
    if (!ifilter.value) {
	show_new_list(cur_names);
	return;
    }

    // Adjust what's hidden based on latest input


    //
    // Note that when filtering, we even show items
    //  from colors which are not selected in the RGY
    //  selector.
    //
    const ifv = ifilter.value.toLowerCase();

    let showing = null;
    for (let i of cur_names.items) {
	if (i.name.toLowerCase().includes(ifv)) {
	    showing = "inline";
	} else {
	    showing = "none";
	}

	// Update display attribute
	for (let e of i.elems) {