Commit b8d6797c authored by Pramith Dayananda's avatar Pramith Dayananda

Bug 1731404: fix suspended/ expired user select

fixed following:
jQuery get user type from dropdown usertype_type
the list does not work if no pagination needed

behatnotneeded

Change-Id: I2da46141bd3c12969ab5523b5c822cd85978b8e9
parent 5ad2ee19
......@@ -127,7 +127,7 @@ jQuery(function ($) {
'offset': 0,
'sesskey': config['sesskey'],
'setlimit': true,
'type': $('usertype_type').value,
'type': $('#usertype_type option:selected').val(),
};
p.sendQuery(params);
event.preventDefault();
......
......@@ -220,7 +220,7 @@ return function(id, list, heading, script, extradata) {
if (firstLink.length) {
firstLink.focus();
}
else if (results.length) {
else if (results && results.length > 0) {
results.prop('tabindex', -1)
.addClass('hidefocus')
.focus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment