Browse Source

[Update] 删除多余代码

pull/1397/head
BaiJiangJie 7 years ago
parent
commit
c6a8967376
  1. 28
      apps/common/templates/common/security_setting.html

28
apps/common/templates/common/security_setting.html

@ -83,33 +83,5 @@
{% endblock %}
{% block custom_foot_js %}
<script>
$(document).ready(function () {
})
.on("click", ".btn-test", function () {
var data = {};
var form = $("form").serializeArray();
$.each(form, function (i, field) {
data[field.name] = field.value;
});
var the_url = "{% url 'api-common:mail-testing' %}";
function error(message) {
toastr.error(message)
}
function success(message) {
toastr.success(message.msg)
}
APIUpdateAttr({
url: the_url,
body: JSON.stringify(data),
method: "POST",
flash_message: false,
success: success,
error: error
});
})
</script>
{% endblock %}

Loading…
Cancel
Save