')
.insertBefore(dpts)
.append($(''))
.on('click', function() {
diff --git a/static/js/compilacao_notas.js b/static/js/compilacao_notas.js
index 47409054a..487cfb5ec 100644
--- a/static/js/compilacao_notas.js
+++ b/static/js/compilacao_notas.js
@@ -23,9 +23,11 @@ function onEventsDneExec(pk, model) {
});
}
else if (model == 'vide') {
- configFormSearchTA('#dne'+pk, 'radio', 'select_for_vide');
- onChangeParamTA();
+ DispostivoSearch({
+ 'url_form': '/ta/search_form',
+ 'text_button': 'Definir Dispositivo'
+ });
}
}
@@ -38,7 +40,7 @@ var onSubmitEditNVForm = function(event) {
var id_dispositivo = $('#id_dispositivo').val();
if (id_dispositivo == null) { // trata-se de um vide
- $('#id_dispositivo_ref').remove();
+ //$('#id_dispositivo_ref').remove();
id_dispositivo = $('#id_dispositivo_base').val();
model='vide';
}
diff --git a/static/js/compilacao_view.js b/static/js/compilacao_view.js
index 83303432c..0c15435dd 100644
--- a/static/js/compilacao_view.js
+++ b/static/js/compilacao_view.js
@@ -136,9 +136,13 @@ $(document).ready(function() {
setTimeout(function() {
var href = location.href.split('#')
if (href.length == 2) {
- $('html, body').animate({
- scrollTop: $('#dptt' + href[1] ).offset().top - window.innerHeight / 9
- }, 0);
+ try {
+ $('html, body').animate({
+ scrollTop: $('#dptt' + href[1] ).offset().top - window.innerHeight / 9
+ }, 0);
+ }
+ catch(err) {
+ }
}
}, 100);
diff --git a/templates/compilacao/layout/dispositivo_checkbox_old.html b/templates/compilacao/layout/dispositivo_checkbox_old.html
deleted file mode 100644
index ec994877d..000000000
--- a/templates/compilacao/layout/dispositivo_checkbox_old.html
+++ /dev/null
@@ -1,54 +0,0 @@
-{% load crispy_forms_filters %}
-{% load i18n compilacao_filters common_tags%}
-
-
-
- {% include 'bootstrap/layout/field_errors_block.html' %}
-
-
-
-
- {% for choice, dpt in field.field.choices %}
- {% ifchanged dpt.ta%}
- {% if not forloop.first %}{% endif %}
-
{% endif %}
- {% endfor %}
-
-
-
- {% include 'bootstrap/layout/help_text.html' %}
-