33 lines
863 B
Plaintext
33 lines
863 B
Plaintext
$(window).load(function(){
|
|
if($('.color-picker').length > 0){
|
|
$('.color-picker').miniColors(); // just in category view
|
|
}
|
|
|
|
// below calendar start
|
|
|
|
// month view
|
|
if($('#calendar_month').length > 0){
|
|
var $c_table = $('#calendar_month');
|
|
var sum_h = 0;
|
|
var context_h = $('#main-sidebar').outerHeight();
|
|
$('#main-wrap > *').not('#orbit_calendar, .modal').each(function(){
|
|
sum_h += $(this).outerHeight();
|
|
});
|
|
|
|
$c_table
|
|
// .height(context_h-sum_h-64)
|
|
.find('.month_row')
|
|
.not('.month_row.header')
|
|
.height((context_h-sum_h-92) / 6);
|
|
|
|
$(window).resize(function(){
|
|
$c_table
|
|
.find('.month_row')
|
|
.not('.month_row.header')
|
|
.height(($('#main-sidebar').outerHeight()-sum_h-92) / 6);
|
|
});
|
|
}
|
|
$.get('http://localhost:3000/panel/calendar/back_end/cals/new', function(data) {
|
|
$('#create .modal-body').html(data);
|
|
});
|
|
}); |