From 5d036a21301df8fc323d1c9aeb0ced634bb42fa2 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 27 Sep 2011 08:56:54 -0400
Subject: [PATCH] Fixed jquery File upload problem.

---
 interface/web/themes/default/templates/main.tpl.htm |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/interface/web/themes/default/templates/main.tpl.htm b/interface/web/themes/default/templates/main.tpl.htm
index 83cf44b..9b8695a 100644
--- a/interface/web/themes/default/templates/main.tpl.htm
+++ b/interface/web/themes/default/templates/main.tpl.htm
@@ -67,6 +67,13 @@
 
 		jQuery(document).ready(function() {
 			loadInitContent();
+			
+			$("#pageForm").submit(function(e){
+				//Prevent form submit: e.preventDefault() in lists
+				if ($(".panel #Filter").length > 0) {
+					e.preventDefault();
+				}
+			});
 		});
 		
 		
@@ -124,7 +131,7 @@
                     <div id="col3_content" class="clearfix">
                         <a id="content" name="content"></a>
                         <!-- skiplink anchor: Content -->
-                        <form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm" onSubmit="return false;">
+                        <form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm">
                         <div id="pageContent"><!-- AJAX CONTENT --></div>
                         </form>
                     </div>

--
Gitblit v1.9.1