This commit is contained in:
BoHung Chiu 2023-03-18 17:28:01 +08:00
parent 7616e05258
commit d6a749995f
2 changed files with 22 additions and 22 deletions

View File

@ -88,6 +88,14 @@
$('#backend_fields_analysis').css( 'border','');
}
})
$( ".sort_asc_fields, .sort_desc_fields" ).on("click", function(){
var _this = $(this);
if(_this.prop('checked')){
var other_field_class = _this.hasClass('sort_asc_fields') ? '.sort_desc_fields' : '.sort_asc_fields';
$(other_field_class).filter('[value="' + _this.attr('value') + '"]').prop('checked', false);
}
})
}
$( ".table tbody td" ).each(function(i,v){
$(v).attr("index",$(v).index());
$(v).html("<span class=\"brand ui-sortable-handle\"><i class=\"icons-list-2\"></i></span>" + $(v).html());
@ -109,12 +117,4 @@
}
}
});
$( ".sort_asc_fields, .sort_desc_fields" ).on("click", function(){
var _this = $(this);
if(_this.prop('checked')){
var other_field_class = _this.hasClass('sort_asc_fields') ? '.sort_desc_fields' : '.sort_asc_fields';
$(other_field_class).filter('[value="' + _this.attr('value') + '"]').prop('checked', false);
}
})
}
</script>

View File

@ -24,7 +24,7 @@ $( ".selectbox" ).ready(function() {
</form>
</div>
<table class="table table-hover table-striped plugin_templates-index dt-responsive nowrap">
<caption><h3>{{widget-title}}</h3></caption>
<caption style="display: none;"><h3>{{widget-title}}</h3></caption>
<thead>
<tr data-level="0" data-list="headers">
<th class="col-md-{{col}}">{{head-title}}</th>