Browse Source

Fix bug about ajax petition for verify existing user

jfdelrio 17 years ago
parent
commit
d4d610beaa
3 changed files with 6 additions and 8 deletions
  1. 2 3
      admin/ajax.php
  2. 2 2
      admin/scripts/tools.js
  3. 2 3
      admin/user.php

+ 2 - 3
admin/ajax.php View File

11
 
11
 
12
   =========================== */
12
   =========================== */
13
 ?>
13
 ?>
14
-<?php
15
-	require_once('../config.php');
14
+<?php	
16
 	include("../classes/user.class.php");
15
 	include("../classes/user.class.php");
17
-	$user = new user();
16
+	require_once('../entry.php');	
18
 	if ($user->isAdmin()) {
17
 	if ($user->isAdmin()) {
19
 		if ($_GET["action"]) {
18
 		if ($_GET["action"]) {
20
 			
19
 			

+ 2 - 2
admin/scripts/tools.js View File

25
 		cache: false,
25
 		cache: false,
26
 		success: function(html){
26
 		success: function(html){
27
 			$("#target").html(html);
27
 			$("#target").html(html);
28
-			$("#div-process").css({display:"none"});	
29
-			/*$("#login").css({display:"none"});*/	
28
+			$("#target").css({display:"block"});	
29
+			$("#div-process").css({display:"none"});					
30
 		}
30
 		}
31
 	});
31
 	});
32
 	return false;
32
 	return false;

+ 2 - 3
admin/user.php View File

97
 <?php
97
 <?php
98
 							if (!$isEdition) {
98
 							if (!$isEdition) {
99
 ?>
99
 ?>
100
-									<script language="javascript" type="text/javascript">						
101
-										document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
102
-									</script>
100
+								<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />
101
+									
103
 <?php
102
 <?php
104
 							}
103
 							}
105
 ?>
104
 ?>