Skip to content

Commit 5d036a2

Browse files
committed
Fixed jquery File upload problem.
1 parent f99b125 commit 5d036a2

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

interface/web/themes/default/templates/main.tpl.htm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767

6868
jQuery(document).ready(function() {
6969
loadInitContent();
70+
71+
$("#pageForm").submit(function(e){
72+
//Prevent form submit: e.preventDefault() in lists
73+
if ($(".panel #Filter").length > 0) {
74+
e.preventDefault();
75+
}
76+
});
7077
});
7178

7279

@@ -124,7 +131,7 @@ <h1 id="ir-HeaderLogo" class="swap"><span>ISPConfig 3</span></h1>
124131
<div id="col3_content" class="clearfix">
125132
<a id="content" name="content"></a>
126133
<!-- skiplink anchor: Content -->
127-
<form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm" onSubmit="return false;">
134+
<form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm">
128135
<div id="pageContent"><!-- AJAX CONTENT --></div>
129136
</form>
130137
</div>

interface/web/themes/default_64_navimg/templates/main.tpl.htm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868

6969
jQuery(document).ready(function() {
7070
loadInitContent();
71+
72+
$("#pageForm").submit(function(e){
73+
//Prevent form submit: e.preventDefault() in lists
74+
if ($(".panel #Filter").length > 0) {
75+
e.preventDefault();
76+
}
77+
});
7178
});
7279

7380
jQuery(document).bind("change", function(event) {

interface/web/themes/default_combobox/templates/main.tpl.htm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070

7171
jQuery(document).ready(function() {
7272
loadInitContent();
73+
74+
$("#pageForm").submit(function(e){
75+
//Prevent form submit: e.preventDefault() in lists
76+
if ($(".panel #Filter").length > 0) {
77+
e.preventDefault();
78+
}
79+
});
7380
});
7481

7582
jQuery(document).bind("change", function(event) {

interface/web/themes/default_no_navimg/templates/main.tpl.htm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868

6969
jQuery(document).ready(function() {
7070
loadInitContent();
71+
72+
$("#pageForm").submit(function(e){
73+
//Prevent form submit: e.preventDefault() in lists
74+
if ($(".panel #Filter").length > 0) {
75+
e.preventDefault();
76+
}
77+
});
7178
});
7279

7380
jQuery(document).bind("change", function(event) {

0 commit comments

Comments
 (0)