From 3d968f73a9e873a49a185436bb8427e347168602 Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 19 Sep 2023 20:56:40 +0800 Subject: [PATCH] bug fix for button enable --- www/js/tajian.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/tajian.js b/www/js/tajian.js index 84d01dc..2da8556 100644 --- a/www/js/tajian.js +++ b/www/js/tajian.js @@ -45,7 +45,7 @@ dataType: 'JSON', data: postData }).done(function(data, textStatus, jqXHR) { - $(btn).prop('disabled', false); + $(btn).removeAttr('disabled'); if (data.code == 1) { $('input[name=share_content]').val(''); @@ -54,7 +54,7 @@ alert('保存失败!' + data.err); } }).fail(function(jqXHR, textStatus, errorThrown) { - $(btn).props('disabled', false); + $(btn).removeAttr('disabled'); alert('服务器异常了:' + errorThrown); }); });