* remove unused ajax initialization.

This commit is contained in:
Hao Sun
2021-09-15 18:00:11 +08:00
parent 514492576c
commit 116e8bab90
2 changed files with 3 additions and 12 deletions
+2 -11
View File
@@ -1,17 +1,8 @@
$(document).ready(function()
{
$('#files').change(function(){$('#avatarForm').submit();});
$.setAjaxForm('#avatarForm', function(response)
$('#files').change(function()
{
if(response.result == 'success')
{
setTimeout(function()
{
$('#avatarUploadBtn').popover('destroy');
$('#ajaxModal').load(response.locate);
}, 800);
}
$('#avatarForm').submit();
});
$('#avatarUploadBtn').on('click', function()
+1 -1
View File
File diff suppressed because one or more lines are too long