{% load i18n %} function listCommitDetails(url, t) { $.modal('
' + t + '
'; var con = ''; function show(data_, hd) { if (data_.length > 0) { con += '' + HTMLescape(data['cmt_desc']) + '
'; } } $('#ls-ch').html(heading + time + con); $(window).resize(); }, error: function() { $('#ls-ch').html("{% trans "Unknown error." %}"); setTimeout(function() { $.modal.close(); }, 2500); } }); } $('.lsch').click(function() { listCommitDetails($(this).data('url'), $(this).data('time')); return false; });