Commit 71c59d68 by benjaoming

fix wrong form target on clicking 'Switch to selected version' + modal window height

parent beb75715
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<span class="icon-random"></span> <span class="icon-random"></span>
{% trans "Merge selected with current..." %} {% trans "Merge selected with current..." %}
</button> </button>
<button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="$('#previewModal').modal('show'); this.form.target='previewWindow'; this.form.action=$('input[type=radio]:checked').attr('switch-button-href')"> <button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.target='_self'; this.form.action=$('input[type=radio]:checked').attr('switch-button-href')">
<span class="icon-flag"></span> <span class="icon-flag"></span>
{% trans "Switch to selected version" %} {% trans "Switch to selected version" %}
</button> </button>
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
<a href="#" class="btn btn-large btn-primary switch-to-revision"> <a href="#" class="btn btn-large btn-primary switch-to-revision">
<span class="icon-flag"></span> <span class="icon-flag"></span>
{% trans "Switch to this version" %} {% trans "Switch to this version" %}
</a> </a>
{% else %} {% else %}
<a href="#" class="btn btn-large btn-primary disabled"> <a href="#" class="btn btn-large btn-primary disabled">
<span class="icon-lock"></span> <span class="icon-lock"></span>
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<p class="lead"><span class="icon-info-sign"></span> {% trans "When you merge a revision with the current, all data will be retained from both versions and merged at its approximate location from each revision." %} <strong>{% trans "After this, it's important to do a manual review." %}</strong></p> <p class="lead"><span class="icon-info-sign"></span> {% trans "When you merge a revision with the current, all data will be retained from both versions and merged at its approximate location from each revision." %} <strong>{% trans "After this, it's important to do a manual review." %}</strong></p>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<iframe name="mergeWindow" frameborder="0"></iframe> <iframe name="mergeWindow" frameborder="0" style="min-height: 0;"></iframe>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn btn-large" data-dismiss="modal"> <a href="#" class="btn btn-large" data-dismiss="modal">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment