Browse Source

resolvendo erro de carregamento dos formularios (desabilitando ajax do jquerymobile)

diagnosticos
Felipe Vieira 13 years ago
parent
commit
3e94b2ca17
  1. 2
      media/js/diagnosticos/diagnosticos_categoria_form.js
  2. 6
      sigi/templates/base_mobile.html
  3. 2
      sigi/templates/diagnosticos/diagnosticos_categorias_form.html

2
media/js/diagnosticos/diagnosticos_categoria_form.js

@ -1,3 +1,4 @@
$('#page').live('pageinit', function(event){
// cntabiliza a quantidade de requests // cntabiliza a quantidade de requests
// ajax para nao desabilitar o loader // ajax para nao desabilitar o loader
// antes da hora // antes da hora
@ -30,7 +31,6 @@ $.ajaxSetup({
} }
}); });
$( '#page').live('pageinit', function(event){
// remove a resposta vazia da interface // remove a resposta vazia da interface
$("div.ui-radio span.ui-btn-text:contains('---------')").parentsUntil("ul").hide() $("div.ui-radio span.ui-btn-text:contains('---------')").parentsUntil("ul").hide()

6
sigi/templates/base_mobile.html

@ -9,6 +9,12 @@
{% block media %} {% block media %}
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /> <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 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="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
{% endblock media %} {% endblock media %}
</head> </head>

2
sigi/templates/diagnosticos/diagnosticos_categorias_form.html

@ -42,3 +42,5 @@
</div> </div>
</div> <!-- footer --> </div> <!-- footer -->
{% endblock rodape %} {% endblock rodape %}

Loading…
Cancel
Save