1
0
Fork 0
mirror of https://github.com/correl/codereview.git synced 2025-04-10 17:00:04 -09:00

Updated buttons to use the jQuery theme

This commit is contained in:
Correl Roush 2010-12-21 17:16:10 -05:00
parent fb4be59b12
commit bd2d939fb0
3 changed files with 14 additions and 1 deletions
templates
components
layouts
review

View file

@ -17,5 +17,5 @@
</div>
{% endfor %}
<div class="comment-buttons">
<a href="#comment-{{ comment.pk }}" rel="respond">Reply</a>
<a class="button" href="#comment-{{ comment.pk }}" rel="respond">Reply</a>
</div>

View file

@ -7,6 +7,18 @@
<script type="text/javascript" src="/media/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/media/js/jquery-ui-1.8.6.custom.min.js"></script>
<title>{% block title %}CodeReview{% endblock %}</title>
<script type="text/javascript">
function styleButtons() {
$('input[type=submit], input[type=button], .button').button();
}
$(document).ready(function() {
styleButtons();
});
$(document).ajaxComplete(function() {
styleButtons();
});
</script>
</head>
<body>
<div id="container">

View file

@ -83,6 +83,7 @@
updateButtons();
}
});
styleButtons();
}
</script>
<h2>#{{ review.pk }} - <span id="review-description">{{ review.description }}</span></h2>