2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

!!! NEW ADMIN PANEL layout + required js and css libraries

modified functions/functions.xhtml.php file prepared for upcoming admin pages changes
This commit is contained in:
Alex
2015-02-12 00:00:05 +03:00
parent bdda1af5f3
commit dadad5ed63
28 changed files with 9338 additions and 101 deletions

53
js/admin.js Normal file
View File

@@ -0,0 +1,53 @@
/* Navigation */
var TO = false;
$(document).ready(function(){
$(".content #nav a").on('click',function(e){
if(!$(this).parents(".content:first").hasClass("enlarged")){
if($(this).parent().hasClass("has_sub")) { e.preventDefault(); }
if(!$(this).hasClass("subdrop")) {
// hide any open menus and remove all other classes
$("ul",$(this).parents("ul:first")).slideUp(350);
$("a",$(this).parents("ul:first")).removeClass("subdrop");
// open our new menu and add the open class
$(this).next("ul").slideDown(350);
$(this).addClass("subdrop");
}
else
if($(this).hasClass("subdrop")) {
$(this).removeClass("subdrop");
$(this).next("ul").slideUp(350);
}
}
});
$("#nav > li.has_sub > a.open").addClass("subdrop").next("ul").show();
$(".menubutton").click(function(){
if(!$(".content").hasClass("enlarged")){
$(".content").addClass("enlarged");
}else{
$(".content").removeClass("enlarged");
}
});
/**/
$(".sidebar-dropdown a").on('click',function(e){
e.preventDefault();
if(!$(this).hasClass("open")) {
// hide any open menus and remove all other classes
$(".sidebar #nav").slideUp(350);
$(".sidebar-dropdown a").removeClass("open");
// open our new menu and add the open class
$(".sidebar #nav").slideDown(350);
$(this).addClass("open");
}
else if($(this).hasClass("open")) {
$(this).removeClass("open");
$(".sidebar #nav").slideUp(350);
}
});
});
$('[data-toggle="tooltip"]').tooltip();

22
js/bootstrap-switch.min.js vendored Normal file

File diff suppressed because one or more lines are too long

65
js/custom.js Normal file
View File

@@ -0,0 +1,65 @@
/* Widget minimize */
$('.wminimize').click(function(e){
e.preventDefault();
var $wcontent = $(this).parent().parent().next('.content');
if($wcontent.is(':visible'))
{
$(this).removeClass('fa-chevron-circle-up text-primary').addClass('fa-chevron-circle-down text-danger');
}
else
{
$(this).removeClass('fa-chevron-circle-down text-danger').addClass('fa-chevron-circle-up text-primary');
}
$wcontent.slideToggle(300);
});
/* Scroll to Top */
$(".totop").hide();
$(function(){
$(window).scroll(function(){
if($(this).scrollTop()>300)
{
$('.totop').slideDown();
}
else
{
$('.totop').slideUp();
}
});
$('.totop a').click(function (e) {
e.preventDefault();
$('body,html').animate({scrollTop: 0}, 500);
});
});
/* panel close
$('.pclose').click(function(e){
e.preventDefault();
var $pbox = $(this).parent().parent().parent();
$pbox.hide(100);
});*/
/* Date picker
$(function() {
$('#datetimepicker1').datetimepicker({
pickTime: false
});
});
$(function() {
$('#datetimepicker2').datetimepicker({
pickDate: false
});
});*/
/* Modal fix
$('.modal').appendTo($('body'));*/
/*Bootstrap Data table, tooltip and bs switch init */
$('[data-toggle="tooltip"]').tooltip();
/*
$('[switch="yes"]').bootstrapSwitch();
$('#bs-table').bdt();*/
//alert ("custom js OK"); //test js