BUG 9218 Con el plugin ldap v.1.4.26, haciendo upgrade... SOLVED
- The button of import not appear after of make the search. - Was the button by default in visible, also of validate.
This commit is contained in:
@@ -24,9 +24,6 @@
|
||||
</BTN_CANCEL>
|
||||
|
||||
<JS type="javascript"><![CDATA[
|
||||
|
||||
getField('btnImport').style.visibility = 'hidden';
|
||||
|
||||
function disableEnterKey(e)
|
||||
{
|
||||
var key;
|
||||
@@ -56,24 +53,16 @@ var searchUsers = function() {
|
||||
});
|
||||
oRPC.callback = function(rpc){
|
||||
document.getElementById('spanUsers').innerHTML = rpc.xmlhttp.responseText;
|
||||
if (checkInfo()) {
|
||||
getField('btnImport').style.visibility = 'visible';
|
||||
}
|
||||
else {
|
||||
getField('btnImport').style.visibility = 'hidden';
|
||||
}
|
||||
var scs = rpc.xmlhttp.responseText.extractScript();
|
||||
scs.evalScript();
|
||||
|
||||
}.extend(this);
|
||||
oRPC.make();
|
||||
|
||||
};
|
||||
|
||||
function checkInfo() {
|
||||
var input_obj = document.getElementsByTagName("input");
|
||||
for (i = 0; i < input_obj.length; i++) {
|
||||
if (input_obj.item(i).type == 'checkbox')
|
||||
if (input_obj.item(i).type == 'checkbox' && input_obj.item(i).checked == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -82,20 +71,11 @@ function checkInfo() {
|
||||
}
|
||||
|
||||
var importUsers = function(oForm) {
|
||||
var bContinue = false;
|
||||
var i = 0;
|
||||
var oAux;
|
||||
while (oAux = document.getElementById('aUsers[' + i + ']')) {
|
||||
if (oAux.checked) {
|
||||
bContinue = true;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if (bContinue) {
|
||||
if (checkInfo()) {
|
||||
oForm.submit();
|
||||
}
|
||||
else {
|
||||
//alert(666);
|
||||
alert(_('ID_NO_SELECTION_WARNING'));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user