[fix] [minor] use prop instead of attr to disable a field

This commit is contained in:
Anand Doshi
2013-08-30 18:22:58 +05:30
parent f7e5648365
commit c8e39b0965
5 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ erpnext.send_message = function(opts) {
wn.call = function(opts) {
if(opts.btn) {
$(opts.btn).attr("disabled", "disabled");
$(opts.btn).prop("disabled", true);
}
if(opts.msg) {
@@ -51,7 +51,7 @@ wn.call = function(opts) {
dataType: "json",
success: function(data) {
if(opts.btn) {
$(opts.btn).attr("disabled", false);
$(opts.btn).prop("disabled", false);
}
if(data.exc) {
if(opts.btn) {