Skip to content

Commit

Permalink
deploys: fix rollback confirmation button.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsmedina committed Jul 29, 2015
1 parent 3727aaa commit ec8b8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/templates/apps/deploys.html
Expand Up @@ -66,7 +66,7 @@
<a href="{% url 'app-deploy' app.name deploy.ID %}">view info</a>
{% if deploy.CanRollback and forloop.counter0 %}
-
<a href="#confirmation"
<a class="rollback" href="#confirmation"
data-toggle="modal" app-name="{{ app.name }}" rollback-url="{% url 'app-rollback' app.name deploy.Image %}">roll back to here</a>
{% endif %}
</td>
Expand Down Expand Up @@ -124,7 +124,7 @@ <h3 id="myModalLabel">New deploy</h3>
<script src="{{ STATIC_URL }}js/confirmation.js"></script>
<script src="https://stuk.github.io/jszip/dist/jszip.js"></script>
<script type="text/javascript">
$(".deploys .btn").on('click', function(ev) {
$(".deploys .rollback").on('click', function(ev) {
ev.preventDefault();
var appName = $(this).attr("app-name")
var rollbackUrl = $(this).attr("rollback-url");
Expand Down

0 comments on commit ec8b8f0

Please sign in to comment.