Skip to content

Commit

Permalink
Allow more characters in Notes (even new line was not allowed)
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Oct 5, 2021
1 parent 10069fd commit 547de6c
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions website_code/scripts/properties_tab.js
Expand Up @@ -790,21 +790,17 @@ function change_notes(template_id, form_tag){
var i = document.getElementById(form_tag).childNodes[0].nodeName.toLowerCase() == 'textarea' ? 0 : 1;
new_notes = document.getElementById(form_tag).childNodes[i].value;

if(is_ok_notes(new_notes)){
$.ajax({
type: "POST",
url: "website_code/php/properties/notes_change_template.php",
data: {
template_id: template_id,
notes: new_notes
}
})
.done(function (response) {
properties_stateChanged(response);
});
}else{
alert(NOTES_FAIL);
}
$.ajax({
type: "POST",
url: "website_code/php/properties/notes_change_template.php",
data: {
template_id: template_id,
notes: new_notes
}
})
.done(function (response) {
properties_stateChanged(response);
});
}

/**
Expand Down

0 comments on commit 547de6c

Please sign in to comment.