Commit 9268e4ac by Őry Máté

fix last one

parent a67bb6a1
{% load i18n %} {% load i18n %}
{% get_current_language as LANGUAGE_CODE %} {% get_current_language as LANGUAGE_CODE %}
<form action="/ajax/share/{{base.id}}" method="post" id="template-wizard">{% csrf_token %} <form action="/ajax/share/{{base.id}}/" method="post" id="template-wizard">{% csrf_token %}
<div id="new-share" class="wizard"> <div id="new-share" class="wizard">
<h2>{% blocktrans with t=base.name%}Sharing template: {{t}}{% endblocktrans %}</h2> <h2>{% blocktrans with t=base.name%}Sharing template: {{t}}{% endblocktrans %}</h2>
{% if not group %} {% if not group %}
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
</nav> </nav>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
{% if not group %}
if (!$("select#share-group-select :selected").val()) if (!$("select#share-group-select :selected").val())
$('#new-share input[type=submit]').attr("disabled", "") $('#new-share input[type=submit]').attr("disabled", "")
else else
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
else else
$('#new-share input[type=submit]').removeAttr("disabled") $('#new-share input[type=submit]').removeAttr("disabled")
}) })
{% endif %}
$('#new-share nav .prev').click(function(){ $('#new-share nav .prev').click(function(){
$('#modal').hide(); $('#modal').hide();
......
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 sign in to comment