Don't delete value if there's a problem with inline edit of a long field
This commit is contained in:
parent
c8305c4cf5
commit
39a68b9b14
|
@ -610,7 +610,7 @@ function selectClick(td, event, text, warning) {
|
||||||
input.focus();
|
input.focus();
|
||||||
if (text == 2) { // long text
|
if (text == 2) { // long text
|
||||||
return ajax(location.href + '&' + encodeURIComponent(td.id) + '=', function (request) {
|
return ajax(location.href + '&' + encodeURIComponent(td.id) + '=', function (request) {
|
||||||
if (request.status) {
|
if (request.status && request.responseText) {
|
||||||
input.value = request.responseText;
|
input.value = request.responseText;
|
||||||
input.name = td.id;
|
input.name = td.id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue