+ $(document).ready(function() {
+ $("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aoColumnDefs": [
+ { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
+ ],
+ "aaSorting": [[ 1, "asc" ]],
+ "iDisplayLength": 20,
+ "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
+ "sPaginationType": "four_button"
+ }));
+
+ if ( $("#branches option:selected").length < 1 ) {
+ $("#branches option:first").attr("selected", "selected");
+ }
+ $('#icons').tabs();
+});
+//]]>
+</script>
+
+[% IF ( else ) %]
+<script type="text/javascript">
+//<![CDATA[
+$(document).ready(function() {
+ $('#category').find("input:submit").hide();
+ $('#searchfield').change(function() {
+ $('#category').submit();
+ });
+});