mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
TOTAL NEW look, crosslinks, modified input types, added restrictions, collapse CKeditor textarea, "delete" protection switched to bs-toggle updated js/custom.js
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
/* Widget minimize */
|
|
$('.wminimize').click(function(e){
|
|
e.preventDefault();
|
|
var $wcontent = $(this).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();
|
|
$pbox.hide(100);
|
|
});*/
|
|
|
|
/* Date picker
|
|
$(function() {
|
|
$('#datetimepicker1').datetimepicker({
|
|
pickTime: false
|
|
});
|
|
});
|
|
$(function() {
|
|
$('#datetimepicker2').datetimepicker({
|
|
pickDate: false
|
|
});
|
|
});*/
|
|
|
|
/* Modal fix
|
|
$('.modal').appendTo($('body'));*/
|
|
|
|
$('[data-toggle="tooltip"]').tooltip(); |