]> git.joonet.de Git - adminer.git/commitdiff
Don't delete value if there's a problem with inline edit of a long field
authorJakub Vrana <jakub@vrana.cz>
Thu, 9 Jan 2014 07:06:53 +0000 (23:06 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 9 Jan 2014 07:06:53 +0000 (23:06 -0800)
adminer/static/functions.js

index 69094b0f91048d89392b0d94f1c60d35bdbdcadd..0b41c23f3ea256036d8420f9e14d26e7a6264e84 100644 (file)
@@ -610,7 +610,7 @@ function selectClick(td, event, text, warning) {
        input.focus();
        if (text == 2) { // long text
                return ajax(location.href + '&' + encodeURIComponent(td.id) + '=', function (request) {
-                       if (request.status) {
+                       if (request.status && request.responseText) {
                                input.value = request.responseText;
                                input.name = td.id;
                        }