diff options
author | Yorhel <git@yorhel.nl> | 2016-07-03 10:59:35 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-07-03 10:59:35 +0200 |
commit | 7da2edeaa0f6cf7794f4f8f68960497dc1be893c (patch) | |
tree | c59de08987be52187635cb7045fb537fb8e04d7d /data | |
parent | d393bac3b28716ab6d5cb0b159e149ebf9920f51 (diff) |
Various staff search improvements
- Exact match is now case-insensitive
- Main staff search supports exact match with =-prefix
- On VN edit dropdown: exact matches are sorted before other matches
- VN edit dropdown now also displays original name
Diffstat (limited to 'data')
-rw-r--r-- | data/js/vncast.js | 1 | ||||
-rw-r--r-- | data/js/vnstaff.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/data/js/vncast.js b/data/js/vncast.js index 6e499638..4be98314 100644 --- a/data/js/vncast.js +++ b/data/js/vncast.js @@ -34,6 +34,7 @@ function vncLoad() { dsInit(byId('cast_input'), '/xml/staff.xml?q=', function(item, tr) { tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('sid'))); tr.appendChild(tag('td', item.firstChild.nodeValue)); + tr.appendChild(tag('td', item.getAttribute('orig'))); }, vncFormAdd); } diff --git a/data/js/vnstaff.js b/data/js/vnstaff.js index 0bb97187..0d963c53 100644 --- a/data/js/vnstaff.js +++ b/data/js/vnstaff.js @@ -19,6 +19,7 @@ function vnsLoad() { dsInit(byId('credit_input'), '/xml/staff.xml?q=', function(item, tr) { tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('sid'))); tr.appendChild(tag('td', item.firstChild.nodeValue)); + tr.appendChild(tag('td', item.getAttribute('orig'))); }, vnsFormAdd); } |