[EDIT] SELECT2 EN LA VISTA mantenimientoMenu.jsp

parent a516109a
...@@ -1895,7 +1895,7 @@ public class MenuMYSQLDAO implements MenuDAO { ...@@ -1895,7 +1895,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ " from modulo as a " + " from modulo as a "
+ " where true " + " where true "
+ condicion + condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; "; + " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql); pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery(); rsLlave = pst.executeQuery();
while (rsLlave.next()) { while (rsLlave.next()) {
...@@ -1979,7 +1979,7 @@ public class MenuMYSQLDAO implements MenuDAO { ...@@ -1979,7 +1979,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ "from categoria as a " + "from categoria as a "
+ "where true " + "where true "
+ condicion + condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; "; + " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql); pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery(); rsLlave = pst.executeQuery();
while (rsLlave.next()) { while (rsLlave.next()) {
...@@ -2063,7 +2063,7 @@ public class MenuMYSQLDAO implements MenuDAO { ...@@ -2063,7 +2063,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ "from subcategoria as a " + "from subcategoria as a "
+ "where true " + "where true "
+ condicion + condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; "; + " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql); pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery(); rsLlave = pst.executeQuery();
while (rsLlave.next()) { while (rsLlave.next()) {
......
...@@ -38,8 +38,8 @@ let tipo_usuario_nombre = ""; ...@@ -38,8 +38,8 @@ let tipo_usuario_nombre = "";
} }
$('#btnLimpiar').click(function () { $('#btnLimpiar').click(function () {
$('#cboTipoUsuario').val(""); $('#cboTipoUsuario').val(null).trigger('change');
$('#cboProyecto').val(""); $('#cboProyecto').val(null).trigger('change');
$('#cboTipoUsuario').attr('disabled', true); $('#cboTipoUsuario').attr('disabled', true);
$('#btnBuscar').attr('disabled', true); $('#btnBuscar').attr('disabled', true);
recargar(); recargar();
......
...@@ -180,6 +180,8 @@ ...@@ -180,6 +180,8 @@
<script src="../js/lib/jquery-editable-select.min.js" type="text/javascript"></script> <script src="../js/lib/jquery-editable-select.min.js" type="text/javascript"></script>
<script src="../js/pages/MantenimientoMenu.js" type="text/javascript"></script> <script src="../js/pages/MantenimientoMenu.js" type="text/javascript"></script>
<script> <script>
$('#cboProyecto').select2();
$('#cboTipoUsuario').select2();
let switchery = new Switchery(document.querySelector('#cbkEstado'), {color: 'red', secondaryColor: 'green'}); let switchery = new Switchery(document.querySelector('#cbkEstado'), {color: 'red', secondaryColor: 'green'});
let switchery2 = new Switchery(document.querySelector('#cbkPermisos'), {color: 'red', secondaryColor: 'green'}); let switchery2 = new Switchery(document.querySelector('#cbkPermisos'), {color: 'red', secondaryColor: 'green'});
$('.heading-elements').css('display','flex'); $('.heading-elements').css('display','flex');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment