From 86ab8f1f60c6895285ac02ee7f88f8ddadec2cb8 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 26 Sep 2016 13:13:55 -0300 Subject: [PATCH] =?UTF-8?q?Substitui=20o=20underscore=20por=20tra=C3=A7o?= =?UTF-8?q?=20em=20URLs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/protocoloadm/urls.py | 8 ++++---- sapl/static/js/app.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sapl/protocoloadm/urls.py b/sapl/protocoloadm/urls.py index 2c7f4f529..c98afe4c1 100644 --- a/sapl/protocoloadm/urls.py +++ b/sapl/protocoloadm/urls.py @@ -43,9 +43,9 @@ urlpatterns = [ include(ProtocoloMateriaCrud.get_urls()), name='protocolomat'), url(r'^protocoloadm/protocolo$', ProtocoloPesquisaView.as_view(), name='protocolo'), - url(r'^protocoloadm/protocolo_list$', + url(r'^protocoloadm/protocolo-list$', ProtocoloListView.as_view(), name='protocolo_list'), - url(r'^protocoloadm/(?P\d+)/(?P\d+)/protocolo_mostrar$', + url(r'^protocoloadm/(?P\d+)/(?P\d+)/protocolo-mostrar$', ProtocoloMostrarView.as_view(), name='protocolo_mostrar'), url(r'^protocoloadm/anular-protocolo', AnularProtocoloAdmView.as_view(), name='anular_protocolo'), @@ -66,12 +66,12 @@ urlpatterns = [ url(r'^protocoloadm/(?P\d+)/(?P\d+)/comprovante$', ComprovanteProtocoloView.as_view(), name='comprovante_protocolo'), - url(r'^protocoloadm/(?P\d+)/(?P\d+)/criar_documento$', + url(r'^protocoloadm/(?P\d+)/(?P\d+)/criar-documento$', CriarDocumentoProtocolo.as_view(), name='criar_documento'), # FIXME: Usado para pesquisar autor # Melhor forma de fazer? # Deve mudar de app? - url(r'^proposicao/pesquisar_autor', + url(r'^proposicao/pesquisar-autor', pesquisa_autores, name='pesquisar_autor'), ] diff --git a/sapl/static/js/app.js b/sapl/static/js/app.js index b9d4d08f8..84ceb0e8a 100644 --- a/sapl/static/js/app.js +++ b/sapl/static/js/app.js @@ -90,7 +90,7 @@ function autorModal() { $("#pesquisar").click(function() { var query = $("#q").val() - $.get("/proposicao/pesquisar_autor?q="+ query, function( + $.get("/proposicao/pesquisar-autor?q="+ query, function( data, status){ $("#div-resultado").children().remove(); @@ -142,7 +142,7 @@ function autorModal() { if ($(fieldname).length > 0) { // se campo existir if ($(fieldname).val() != "") { // e não for vazio var id = $(fieldname).val(); - $.get("/proposicao/get_nome_autor?id=" + id, function(data, status){ + $.get("/proposicao/get-nome-autor?id=" + id, function(data, status){ $("#nome_autor").text(data.nome); }); }