1
0
Fork 0
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:
Afterster 2015-01-28 07:15:31 +01:00
parent 2122fe9531
commit 242f7b830a
4 changed files with 16 additions and 6 deletions

View file

@ -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");