Changed bad ajax call

This commit is contained in:
Arturo Gonzalez 2017-06-07 11:28:09 +02:00
parent 149a77a559
commit d101d9abdc
2 changed files with 3 additions and 5 deletions

View File

@ -49,7 +49,6 @@ if (is_ajax()) {
$not_return = get_parameter ('not_return', 0);
$reset_initial_wizard = get_parameter ('reset_initial_wizard', 0);
if ($reset_initial_wizard) {
config_update_value ('initial_wizard', 0);
}

View File

@ -1093,11 +1093,11 @@ require('include/php_to_js_values.php');
function first_time_identification () {
run_identification_wizard (-1, -1, 1);
}
var times_fired_register_wizard = 0;
function run_identification_wizard (register, newsletter , return_button) {
if (times_fired_register_wizard) {
$(".ui-dialog-titlebar-close").show();
//Reset some values
@ -1127,10 +1127,9 @@ require('include/php_to_js_values.php');
$("#login_accept_register").dialog('open');
}
else {
$(".ui-dialog-titlebar-close").show();
$("#container").append('<div class="id_wizard"></div>');
jQuery.get ("ajax.php",
jQuery.post ("ajax.php",
{"page": "general/login_identification_wizard",
"not_return": 1,
"force_register": register,