From 47e775cdfe9b11b4a8650e72193287f5b4d5ea55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 5 Oct 2016 19:05:55 +0200 Subject: [PATCH] finalize: done text and hide alternatively note --- src/c3nav/editor/static/editor/js/finalize.js | 1 + src/c3nav/editor/templates/editor/finalize.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/c3nav/editor/static/editor/js/finalize.js b/src/c3nav/editor/static/editor/js/finalize.js index a6431bc8..7ff1eb13 100644 --- a/src/c3nav/editor/static/editor/js/finalize.js +++ b/src/c3nav/editor/static/editor/js/finalize.js @@ -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'); diff --git a/src/c3nav/editor/templates/editor/finalize.html b/src/c3nav/editor/templates/editor/finalize.html index 05b5a8f6..24851106 100644 --- a/src/c3nav/editor/templates/editor/finalize.html +++ b/src/c3nav/editor/templates/editor/finalize.html @@ -56,11 +56,11 @@

Proposing your changes, please wait…

-

Proposing Changes…

-

-

Proposing your changes, please wait…

+

Pull Request created

+

Click the link below to go to the pull request:

+

-

Alternatively, you can copy your edit below and send it to the maps maintainer.

+

Alternatively, you can copy your edit below and send it to the maps maintainer.

{% else %}

Copy your edit