From: zuber Date: Mon, 26 Oct 2009 14:50:57 +0000 (+0100) Subject: Poprawienie URLi w manager/pull_request.html. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/73bfaa4bdc8e38ee0a3f52ce5f8d6d6dd2a99a39 Poprawienie URLi w manager/pull_request.html. --- diff --git a/platforma/templates/manager/pull_request.html b/platforma/templates/manager/pull_request.html index 9b235514..020fcdad 100644 --- a/platforma/templates/manager/pull_request.html +++ b/platforma/templates/manager/pull_request.html @@ -55,6 +55,7 @@ button.attr('disabled', 'disabled'); var id = parseInt(button.attr('title')); var docid = $('h2', button.parents('.pull-request')).html(); + var diffUrl = button.parents('.pull-request').attr('data-diff-url'); var revision = $('.pull-request-revision', button.parents('.pull-request')).html(); $('.diff').slideUp(function() { $(this).remove() }); @@ -62,7 +63,7 @@ .hide() .appendTo($(this).parents('.pull-request')) .slideDown('slow') - .load('/api/documents/' + docid + '/diff?revision=' + revision, null, function() { + .load(diffUrl + '?revision=' + revision, null, function() { button.attr('disabled', null); }); } @@ -75,7 +76,7 @@ {% block maincontent %} {% if objects %} {% for pullreq in objects %} -
+

{{ pullreq.document }}

  • commiter: {{ pullreq.comitter }}