Bläddra i källkod

Fix bug about ajax petition for verify existing user

jfdelrio 17 år sedan
förälder
incheckning
d4d610beaa
3 ändrade filer med 6 tillägg och 8 borttagningar
  1. 2 3
      admin/ajax.php
  2. 2 2
      admin/scripts/tools.js
  3. 2 3
      admin/user.php

+ 2 - 3
admin/ajax.php Visa fil

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

+ 2 - 2
admin/scripts/tools.js Visa fil

@@ -25,8 +25,8 @@ function verifyExistingUser() {
25 25
 		cache: false,
26 26
 		success: function(html){
27 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 32
 	return false;

+ 2 - 3
admin/user.php Visa fil

@@ -97,9 +97,8 @@ if ($user->isAdmin()) {
97 97
 <?php
98 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 102
 <?php
104 103
 							}
105 104
 ?>