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 ($) { ...@@ -127,7 +127,7 @@ jQuery(function ($) {
'offset': 0, 'offset': 0,
'sesskey': config['sesskey'], 'sesskey': config['sesskey'],
'setlimit': true, 'setlimit': true,
'type': $('usertype_type').value, 'type': $('#usertype_type option:selected').val(),
}; };
p.sendQuery(params); p.sendQuery(params);
event.preventDefault(); event.preventDefault();
......
...@@ -220,7 +220,7 @@ return function(id, list, heading, script, extradata) { ...@@ -220,7 +220,7 @@ return function(id, list, heading, script, extradata) {
if (firstLink.length) { if (firstLink.length) {
firstLink.focus(); firstLink.focus();
} }
else if (results.length) { else if (results && results.length > 0) {
results.prop('tabindex', -1) results.prop('tabindex', -1)
.addClass('hidefocus') .addClass('hidefocus')
.focus(); .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