chore: version inicial del codigo fuente del LMS Estafeta
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
var csrf = $('meta[name="csrf-token"]').attr('content');
|
||||
if (csrf) {
|
||||
window.CSRF_TOKEN = csrf;
|
||||
$.ajaxSetup({ headers: { 'X-CSRF-Token': csrf } });
|
||||
}
|
||||
|
||||
admin();
|
||||
|
||||
|
||||
|
||||
$("#menu-toggle").click(function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
$("#wrapper").toggleClass("toggled");
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(".mainseccion").load("usuarios.html", function () {
|
||||
|
||||
$(".layer-load").hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("body").on('click', '.btn-seccion', function (event) {
|
||||
|
||||
$(".layer-load").show();
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
$(".btn-seccion").removeClass('active');
|
||||
|
||||
$(this).addClass('active');
|
||||
|
||||
var ahora = new Date();
|
||||
|
||||
var milisegundos = ahora.getMilliseconds();
|
||||
|
||||
$(".mainseccion").load($(this).data("uri")+"?random="+milisegundos, function () {
|
||||
|
||||
$(".layer-load").hide();
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function admin(){
|
||||
|
||||
var rol = $('#roladmin').val();
|
||||
|
||||
if(rol != 2){
|
||||
|
||||
$('.admin').remove();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user