[EDIT] SELECT2 EN LA VISTA mantenimientoMenu.jsp

parent a516109a
......@@ -1895,7 +1895,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ " from modulo as a "
+ " where true "
+ condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; ";
+ " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery();
while (rsLlave.next()) {
......@@ -1979,7 +1979,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ "from categoria as a "
+ "where true "
+ condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; ";
+ " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery();
while (rsLlave.next()) {
......@@ -2063,7 +2063,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+ "from subcategoria as a "
+ "where true "
+ condicion
+ "ORDER BY 1 desc limit "+start+","+length+" ; ";
+ " group by nom ORDER BY 1 desc limit "+start+","+length+" ; ";
pst = con.prepareStatement(sql);
rsLlave = pst.executeQuery();
while (rsLlave.next()) {
......
......@@ -38,8 +38,8 @@ let tipo_usuario_nombre = "";
}
$('#btnLimpiar').click(function () {
$('#cboTipoUsuario').val("");
$('#cboProyecto').val("");
$('#cboTipoUsuario').val(null).trigger('change');
$('#cboProyecto').val(null).trigger('change');
$('#cboTipoUsuario').attr('disabled', true);
$('#btnBuscar').attr('disabled', true);
recargar();
......
......@@ -180,6 +180,8 @@
<script src="../js/lib/jquery-editable-select.min.js" type="text/javascript"></script>
<script src="../js/pages/MantenimientoMenu.js" type="text/javascript"></script>
<script>
$('#cboProyecto').select2();
$('#cboTipoUsuario').select2();
let switchery = new Switchery(document.querySelector('#cbkEstado'), {color: 'red', secondaryColor: 'green'});
let switchery2 = new Switchery(document.querySelector('#cbkPermisos'), {color: 'red', secondaryColor: 'green'});
$('.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