Commit 0b812a03 authored by ibuler's avatar ibuler

[Bugfix] 修复 ApiUpdateAttr的bug

parent 951ac252
...@@ -170,10 +170,8 @@ function APIUpdateAttr(props) { ...@@ -170,10 +170,8 @@ function APIUpdateAttr(props) {
dataType: props.data_type || "json" dataType: props.data_type || "json"
}).done(function(data, textStatue, jqXHR) { }).done(function(data, textStatue, jqXHR) {
if (flash_message) { if (flash_message) {
if (send_message) {
toastr.success(success_message); toastr.success(success_message);
} }
}
if (typeof props.success === 'function') { if (typeof props.success === 'function') {
return props.success(data); return props.success(data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment