You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
|
|
$(document).ready( function(){
|
|
|
|
tinymce.init({
|
|
selector: '.mce',
|
|
height: 300,
|
|
theme: 'modern',
|
|
menubar: false,
|
|
language: 'it',
|
|
forced_root_block : '',
|
|
force_br_newlines : true,
|
|
plugins: [
|
|
'advlist autolink lists link paste'
|
|
],
|
|
toolbar: 'bold italic underline | alignleft aligncenter alignright alignjustify | link bullist numlist| removeformat',
|
|
image_advtab: false,
|
|
content_css: [
|
|
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
|
|
// '//www.tinymce.com/css/codepen.min.css'
|
|
]
|
|
});
|
|
|
|
$( ".datepicker" ).datepicker({
|
|
changeMonth: true,
|
|
changeYear: true,
|
|
dateFormat: 'dd/mm/yy',
|
|
yearRange: new Date().getFullYear()-90 + ':' + new Date().getFullYear(),
|
|
maxDate: "+1M",
|
|
regional:['it']
|
|
});
|
|
|
|
|
|
$('.form-mod').on('submit', function(e){
|
|
e.preventDefault();
|
|
var id = $(this).find('.id').val();
|
|
var path = $(this).data('path') + "/" + id.trim();
|
|
window.location = path;
|
|
});
|
|
|
|
|
|
$('.files-list .add-file').on('click', function(e){
|
|
e.preventDefault();
|
|
var master = $(this).siblings('.list').find('.master:first-child').clone();
|
|
$(this).siblings('.list').append($(master));
|
|
});
|
|
|
|
});
|