Skip to content

Commit

Permalink
文件指纹查询增加项目选择验证
Browse files Browse the repository at this point in the history
  • Loading branch information
daxiong123 committed Mar 5, 2017
1 parent 0a91644 commit 1b3f43f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions views/walle/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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("<?= Url::to('@web/walle/file-md5?projectId=') ?>" + $("select[name=project]").val() + "&file=" + fileName, function(o) {
$.get("<?= Url::to('@web/walle/file-md5?projectId=') ?>" + projectId + "&file=" + fileName, function(o) {
$('.md5-msg').html(o.data).show()
$('.getting').hide()
});
Expand Down

0 comments on commit 1b3f43f

Please sign in to comment.