diff --git a/views/walle/check.php b/views/walle/check.php index 6e84f92f..08eb1029 100644 --- a/views/walle/check.php +++ b/views/walle/check.php @@ -42,16 +42,17 @@ class="getting icon-spinner icon-spin orange bigger-125" style="display: none">< $(function() { $('.get-md5').click(function() { - var fileName = $('input[name=file]').val(); + var fileName = $('input[name=file]').val(), + projectId = $("select[name=project]").val(); - if(fileName == '') { + if(fileName == '' || projectId == 0) { return false; } $('.getting').show(); - $.get("" + $("select[name=project]").val() + "&file=" + fileName, function(o) { + $.get("" + projectId + "&file=" + fileName, function(o) { $('.md5-msg').html(o.data).show() $('.getting').hide() });