Unnamed Fossil Project

Check-in [84801ee99c]
Login

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

Overview
Comment:Get "+RGY" (show all colors) working.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:84801ee99c561c7860beda28deead97a195cc51f36af26a77af6a4ead1876967
User & Date: vandys 2019-06-23 22:32:14
Context
2019-06-24
20:42
Item name editing check-in: 0299666a71 user: vandys tags: trunk
2019-06-23
22:32
Get "+RGY" (show all colors) working. check-in: 84801ee99c user: vandys tags: trunk
22:24
Implement item deletion. Use dict for List's storage of Item's, since we often look up by Item id. check-in: 5a4ba6c3f5 user: vandys tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to html/shopr.html.

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 <hr>
 <div id="scrlists2">
 </div>
</div>

<div id="scrlist" style="display: none;">
 <div id="scrlist2">
  <span style="background: white;">+RGY</span>
  <span id="spanR" onclick="filtR();" style="background: red;">R</span>
  <span id="spanG" onclick="filtG();" style="background: green;">G</span>
  <span id="spanY" onclick="filtY();" style="background: gold;">Y</span>
  <input type="text" id="ifilter"
   onkeyup="update_filter();" placeholder="Choose or Add">
  <button onclick="addit();">+</button>
  <img src="/imgs/menu.svg" style="float: right;" />







|







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 <hr>
 <div id="scrlists2">
 </div>
</div>

<div id="scrlist" style="display: none;">
 <div id="scrlist2">
  <span style="background: white;" onclick="filtAll();">+RGY</span>
  <span id="spanR" onclick="filtR();" style="background: red;">R</span>
  <span id="spanG" onclick="filtG();" style="background: green;">G</span>
  <span id="spanY" onclick="filtY();" style="background: gold;">Y</span>
  <input type="text" id="ifilter"
   onkeyup="update_filter();" placeholder="Choose or Add">
  <button onclick="addit();">+</button>
  <img src="/imgs/menu.svg" style="float: right;" />

Changes to js/shopr.js.

56
57
58
59
60
61
62









63
64
65
66
67
68
69
	spanY.style.background = "#F3E5AB";
    } else {
	cur_idxs.add(2);
	spanY.style.background = "gold";
    }
    show_new_list(cur_names);
}










// Currently displayed page elem
var curdiv = null;
function setcur(e) {
    if (curdiv != null) {
	curdiv.style.display = "none";
    }







>
>
>
>
>
>
>
>
>







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
	spanY.style.background = "#F3E5AB";
    } else {
	cur_idxs.add(2);
	spanY.style.background = "gold";
    }
    show_new_list(cur_names);
}
function filtAll() {
    cur_idxs.add(0);
    cur_idxs.add(1);
    cur_idxs.add(2);
    spanR.style.background = "red";
    spanG.style.background = "green";
    spanY.style.background = "gold";
    show_new_list(cur_names);
}

// Currently displayed page elem
var curdiv = null;
function setcur(e) {
    if (curdiv != null) {
	curdiv.style.display = "none";
    }