finalize: done text and hide alternatively note

This commit is contained in:
Laura Klünder 2016-10-05 19:05:55 +02:00
parent c90a217e33
commit 47e775cdfe
2 changed files with 5 additions and 4 deletions

View file

@ -26,6 +26,7 @@ finalize = {
_set_state: function(state) {
finalize.state = state;
$('.hoster-state').hide().filter('[data-state='+state+']').show();
$('#alternatively').toggle(['progress', 'done'].indexOf(state) == -1);
},
_click_oauth_btn: function() {
finalize._set_state('oauth');

View file

@ -56,11 +56,11 @@
<p><em>Proposing your changes, please wait…</em></p>
</div>
<div class="hoster-state" data-state="done">
<h2>Proposing Changes…</h2>
<p><img src="{% static 'img/loader.gif' %}"></p>
<p><em>Proposing your changes, please wait…</em></p>
<h2>Pull Request created</h2>
<p>Click the link below to go to the pull request:</p>
<p><a href="" id="pull_request_link"></a></p>
</div>
<p>Alternatively, you can copy your edit below and send it to the maps maintainer.</p>
<p id="alternatively">Alternatively, you can copy your edit below and send it to the maps maintainer.</p>
</div>
{% else %}
<h2>Copy your edit</h2>