$(document).ready(function() { if(!v.dateOptions) bootbox.alert(v.createBalance, function(){ location.href = createLink('depositor', 'browse')}); $('.btn-save-result').click(function() { var btn = $(this); $.getJSON(btn.attr('href'), function(response) { $.zui.messager.success(response.message); $('#submit').click(); }); return false; }) $('.btn-detail').click(function() { $(this).parents('tr').next('tr.detail').toggle(); }) });