From 7da2edeaa0f6cf7794f4f8f68960497dc1be893c Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 3 Jul 2016 10:59:35 +0200 Subject: 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 --- data/js/vncast.js | 1 + data/js/vnstaff.js | 1 + 2 files changed, 2 insertions(+) (limited to 'data/js') 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); } -- cgit v1.2.3