* remove unused ajax initialization.
This commit is contained in:
+2
-11
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user