Fix bug about ajax petition for verify existing user
parent
3c66cf1c27
commit
d4d610beaa
|
|
@ -11,10 +11,9 @@ if(!defined('entry'))define('entry', true);
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
require_once('../config.php');
|
|
||||||
include("../classes/user.class.php");
|
include("../classes/user.class.php");
|
||||||
$user = new user();
|
require_once('../entry.php');
|
||||||
if ($user->isAdmin()) {
|
if ($user->isAdmin()) {
|
||||||
if ($_GET["action"]) {
|
if ($_GET["action"]) {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ function verifyExistingUser() {
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(html){
|
success: function(html){
|
||||||
$("#target").html(html);
|
$("#target").html(html);
|
||||||
$("#div-process").css({display:"none"});
|
$("#target").css({display:"block"});
|
||||||
/*$("#login").css({display:"none"});*/
|
$("#div-process").css({display:"none"});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -97,9 +97,8 @@ if ($user->isAdmin()) {
|
||||||
<?php
|
<?php
|
||||||
if (!$isEdition) {
|
if (!$isEdition) {
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />
|
||||||
document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
|
|
||||||
</script>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue