Browse Source

desativa checkbox e radiobox do druken

drunken será desativa totalmente apos o PR do branch 1540-migra-frontend
pull/2468/head
Leandro Roberto 6 years ago
parent
commit
46b151d396
  1. 2
      sapl/static/js/app.js
  2. 4
      sapl/static/js/compilacao.js
  3. 2
      sapl/static/js/compilacao_edit.js
  4. 3
      sapl/templates/base.html

2
sapl/static/js/app.js

@ -231,7 +231,7 @@ $(document).ready(function(){
autorModal(); autorModal();
initTinymce("texto-rico"); initTinymce("texto-rico");
OptionalCustomFrontEnd(); //OptionalCustomFrontEnd();
}); });

4
sapl/static/js/compilacao.js

@ -118,7 +118,7 @@ function DispostivoSearch(opts) {
insertWaitAjax('.result-busca-dispositivo') insertWaitAjax('.result-busca-dispositivo')
$.get(url, formData).done(function( data ) { $.get(url, formData).done(function( data ) {
$('.result-busca-dispositivo').html(data); $('.result-busca-dispositivo').html(data);
//OptionalCustomFrontEnd().init(); ////OptionalCustomFrontEnd().init();
if (data_type_selection == 'checkbox') { if (data_type_selection == 'checkbox') {
var tas = $('.result-busca-dispositivo').find('input[name="ta_select_all"]'); var tas = $('.result-busca-dispositivo').find('input[name="ta_select_all"]');
tas.off(); tas.off();
@ -168,7 +168,7 @@ function DispostivoSearch(opts) {
$.get(opts['url_form'], function(data) { $.get(opts['url_form'], function(data) {
container_ds.html(data); container_ds.html(data);
var modal_ds = $('#modal-ds'); var modal_ds = $('#modal-ds');
OptionalCustomFrontEnd().init(); //OptionalCustomFrontEnd().init();
modal_ds.find("select[name='tipo_ta']").change(function(event) { modal_ds.find("select[name='tipo_ta']").change(function(event) {
var url = ''; var url = '';

2
sapl/static/js/compilacao_edit.js

@ -229,7 +229,7 @@ function DispositivoEdit() {
if (editortype == 'tinymce' ) { if (editortype == 'tinymce' ) {
initTinymce(); initTinymce();
} }
OptionalCustomFrontEnd().init(); //OptionalCustomFrontEnd().init();
} }
dpt.trigger(trigger); dpt.trigger(trigger);
}).always(function() { }).always(function() {

3
sapl/templates/base.html

@ -241,9 +241,6 @@
<script src="{% static 'tinymce/tinymce.min.js' %}"></script> <script src="{% static 'tinymce/tinymce.min.js' %}"></script>
<script type="text/javascript" src="{% static 'jsdiff/diff.min.js' %}"></script> <script type="text/javascript" src="{% static 'jsdiff/diff.min.js' %}"></script>
<script type="text/javascript" src="{% static 'drunken-parrot-flat-ui/js/checkbox.js' %}"></script>
<script type="text/javascript" src="{% static 'drunken-parrot-flat-ui/js/radio.js' %}"></script>
<script type="text/javascript" src="{% static 'js/app.js' %}"></script> <script type="text/javascript" src="{% static 'js/app.js' %}"></script>
<script type="text/javascript" src="{% static 'jquery-query-object/jquery.query-object.js' %}"></script> <script type="text/javascript" src="{% static 'jquery-query-object/jquery.query-object.js' %}"></script>

Loading…
Cancel
Save