shopr

Check-in [3848b64d45]
Login

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

Overview
Comment:Filtering bringup
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:3848b64d45abb3dc032d6c762039105e0ebb6e05c2b489110a37fd05e312ae05
User & Date: vandys 2019-06-22 18:23:05
Context
2019-06-22
22:41
Add items. Start of item menu. check-in: 08777612d3 user: vandys tags: trunk
18:23
Filtering bringup check-in: 3848b64d45 user: vandys tags: trunk
17:28
Start working up filter text check-in: 35b0eed1a0 user: vandys tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/shopr.js.

330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
    // 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.contains(ifv)) {
	    showing = "inline";
	} else {
	    showing = "none";
	}

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







|







330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
    // 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().contains(ifv)) {
	    showing = "inline";
	} else {
	    showing = "none";
	}

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