update some user api

This commit is contained in:
ibuler
2016-11-09 23:49:10 +08:00
parent c5d625e261
commit 47090eb0f7
14 changed files with 102 additions and 108 deletions

View File

@@ -191,7 +191,6 @@ function APIUpdateAttr(props) {
props = props || {};
var success_message = props.success_message || 'Update Successfully!';
var fail_message = props.fail_message || 'Error occurred while updating.';
console.log(props.body);
$.ajax({
url: props.url,
type: props.method || "PATCH",
@@ -208,7 +207,7 @@ function APIUpdateAttr(props) {
if (typeof props.error === 'function') {
return props.error(errorThrown);
} else {
toastr.error(fail_message);
toastr.error(textStatue);
}
});
return true;