Browse Source

move javascript para dentro do bloco correto

pull/2457/head
Leandro Roberto 6 years ago
parent
commit
35780b0fac
  1. 13
      sapl/templates/base/login.html
  2. 2
      sapl/templates/compilacao/text_list.html
  3. 11
      sapl/templates/compilacao/text_list__embedded.html
  4. 2
      sapl/templates/compilacao/text_list__print_version.html
  5. 18
      sapl/templates/index.html
  6. 11
      sapl/templates/norma/normajuridica_filter.html
  7. 2
      sapl/templates/sessao/votacao/nominal_detail.html
  8. 2
      sapl/templates/sessao/votacao/nominal_edit.html
  9. 2
      sapl/templates/sessao/votacao/nominal_transparencia.html
  10. 2
      sapl/templates/sessao/votacao/simbolica_transparencia.html

13
sapl/templates/base/login.html

@ -57,13 +57,10 @@
{% endblock base_content %}
{% block javascript %}
{% block extra_js %}
<script>
{% if not user.is_authenticated %}
$("#autenticacao") .css("display","none");
{% endif %}
{% if not user.is_authenticated %}
$("#autenticacao") .css("display","none");
{% endif %}
</script>
{% endblock %}
{% endblock %}

2
sapl/templates/compilacao/text_list.html

@ -113,7 +113,7 @@
</div>
{% endblock base_content %}
{% block foot_js %}
{% block extra_js %}
{{block.super}}

11
sapl/templates/compilacao/text_list__embedded.html

@ -78,9 +78,14 @@
</ul>
{% include 'compilacao/text_list_bloco.html'%}
</div>
<script type="text/javascript" src="{% static 'js/compilacao.js' %}"></script>
<script type="text/javascript" src="{% static 'js/compilacao_view.js' %}"></script>
{% block extra_js %}
<script type="text/javascript" src="{% static 'js/compilacao.js' %}"></script>
<script type="text/javascript" src="{% static 'js/compilacao_view.js' %}"></script>
{% if perms.compilacao.add_nota %}
<script type="text/javascript" src="{% static 'js/compilacao_notas.js' %}"></script>
{% endif %}
{% endif %}
{% endblock %}

2
sapl/templates/compilacao/text_list__print_version.html

@ -15,7 +15,7 @@
{% block footer_container %}{% endblock %}
{% block foot_js %}{{block.super}}
{% block extra_js %}{{block.super}}
<script type="text/javascript" src="{% static 'js/compilacao.js' %}"></script>
<script type="text/javascript" src="{% static 'js/compilacao_view.js' %}"></script>
{% endblock %}

18
sapl/templates/index.html

@ -192,11 +192,15 @@
</div>
</div>
<script>
$(document).on('keyup', (e) => {
if (e.keyCode == 86){
window.open("{% url 'sapl.painel:voto_individual' %}",'Voto Individual','width=1000, height=800, scrollbars=yes');
};
});
</script>
{% endblock %}
{% block extra_js %}
<script>
$(document).on('keyup', (e) => {
if (e.keyCode == 86){
window.open("{% url 'sapl.painel:voto_individual' %}",'Voto Individual','width=1000, height=800, scrollbars=yes');
};
});
</script>
{% endblock %}

11
sapl/templates/norma/normajuridica_filter.html

@ -91,6 +91,12 @@
{% endif %}
{% endif %}
{% endblock detail_content %}
{% block table_content %}
{% endblock table_content %}
{% block extra_js %}
<script type="text/javascript">
$(document).ready(function() {
var numeroField = $("#id_numero");
@ -102,7 +108,4 @@
});
});
</script>
{% endblock detail_content %}
{% block table_content %}
{% endblock table_content %}
{% endblock table_content %}

2
sapl/templates/sessao/votacao/nominal_detail.html

@ -52,7 +52,7 @@
</form>
{% endblock detail_content %}
{% block foot_js %}
{% block extra_js %}
<script language="JavaScript">
document.getElementById("observacao").disabled = true;
</script>

2
sapl/templates/sessao/votacao/nominal_edit.html

@ -83,7 +83,7 @@
</form>
{% endblock detail_content %}
{% block foot_js %}
{% block extra_js %}
<script language="JavaScript">
document.getElementById("observacao").disabled = true;
</script>

2
sapl/templates/sessao/votacao/nominal_transparencia.html

@ -58,7 +58,7 @@
</form>
{% endblock detail_content %}
{% block foot_js %}
{% block extra_js %}
<script language="JavaScript">
document.getElementById("observacao").disabled = true;
</script>

2
sapl/templates/sessao/votacao/simbolica_transparencia.html

@ -49,7 +49,7 @@
</form>
{% endblock detail_content %}
{% block foot_js %}
{% block extra_js %}
<script language="JavaScript">
document.getElementById("observacao").disabled = true;
</script>

Loading…
Cancel
Save