mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-15 18:05:50 +01:00
Fix error checking
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#import-form').submit(function(){
|
$('#import-form').submit(function(){
|
||||||
if(!$('#file').val() == ''){
|
if($('#file').val() == ''){
|
||||||
alert('Choose an import XML file.');
|
alert('Choose an import XML file.');
|
||||||
return false;
|
return false;
|
||||||
} else if(!$('#file').val().endsWith(".xml")){
|
} else if(!$('#file').val().endsWith(".xml")){
|
||||||
|
|||||||
Reference in New Issue
Block a user