mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
#11993 Clean traces
This commit is contained in:
parent
f624f88964
commit
57fc1aaf85
@ -87,11 +87,8 @@ html_print_input_hidden('id_user', $id);
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var check = document.getElementById(event.target.id);
|
var check = document.getElementById(event.target.id);
|
||||||
if (check === null) return;
|
if (check === null) return;
|
||||||
console.log(check.checked);
|
|
||||||
console.log(document.getElementById('hidden-id_user').value)
|
|
||||||
var match = /notifications-user-([0-9]+)-label-(.*)/
|
var match = /notifications-user-([0-9]+)-label-(.*)/
|
||||||
.exec(event.target.id);
|
.exec(event.target.id);
|
||||||
console.log(match);
|
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{
|
{
|
||||||
//"page" : "operation/users/user_edit_notifications",
|
//"page" : "operation/users/user_edit_notifications",
|
||||||
@ -103,7 +100,6 @@ html_print_input_hidden('id_user', $id);
|
|||||||
"value": check.checked ? 1 : 0
|
"value": check.checked ? 1 : 0
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
console.log(data, status);
|
|
||||||
if (!data.result) {
|
if (!data.result) {
|
||||||
console.error("Error changing configuration in database.");
|
console.error("Error changing configuration in database.");
|
||||||
} else {
|
} else {
|
||||||
@ -113,8 +109,6 @@ html_print_input_hidden('id_user', $id);
|
|||||||
"json"
|
"json"
|
||||||
).done(function(m){})
|
).done(function(m){})
|
||||||
.fail(function(xhr, textStatus, errorThrown){
|
.fail(function(xhr, textStatus, errorThrown){
|
||||||
console.log(textStatus)
|
|
||||||
console.log(errorThrown)
|
|
||||||
console.error(
|
console.error(
|
||||||
"Cannot change configuration in database. Server error.",
|
"Cannot change configuration in database. Server error.",
|
||||||
xhr.responseText
|
xhr.responseText
|
||||||
|
Loading…
x
Reference in New Issue
Block a user