Browse Source

adicionando mascaras em cnpj e telefone

stable/1.0
Felipe Vieira 13 years ago
parent
commit
fadf63669e
  1. 4
      media/js/diagnosticos/diagnosticos_categorias_form.js
  2. 7
      sigi/templates/base_mobile.html

4
media/js/diagnosticos/diagnosticos_categorias_form.js

@ -78,6 +78,10 @@ $('#page').live('pageinit', function(event){
});
// Mascaras de documentos e telefones
$("#id_cnpj").mask("99.999.999/9999-99");
$(".phone input:text").mask("(99) 9999-9999");
$('input[schema_to_open]').each(function () {
schema = $(this);
schema_to_open = $("#" + schema.attr('schema_to_open'));

7
sigi/templates/base_mobile.html

@ -8,15 +8,16 @@
{% endblock titulo %}
{% block media %}
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script language=javascript>
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.loadingMessage = 'salvando';
});
</script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script src="{{MEDIA_URL}}js/diagnosticos/diagnosticos_categorias_form.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/jquery/jquery.maskedinput-1.1.3.min.js"/></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/diagnosticos/diagnosticos_categorias_form.js"></script>
{% endblock media %}
</head>
<body>

Loading…
Cancel
Save