mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Fix login form when loading in dynamic page
This commit is contained in:
parent
2122fe9531
commit
242f7b830a
4 changed files with 16 additions and 6 deletions
|
@ -54,9 +54,9 @@ $(function() {
|
|||
});
|
||||
|
||||
$("body").delegate("form", "submit", function(e) {
|
||||
// We do not support ajax post with files
|
||||
// We do not support ajax post with files or login form
|
||||
var $file = $(this).find("input[type=file]");
|
||||
if (!$file || !$file.val() || $file.val() == "") {
|
||||
if ($(this).attr('name') !== 'login' && (!$file || !$file.val() || $file.val() === "")) {
|
||||
var postData = $(this).serializeArray();
|
||||
var formURL = $(this).attr("action");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue