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