// javascript per gestione campi obbligatori/// // barili// /////////////////////////////////////////// ////////T O O L B A R ///////////////////// /////////////////////////////////////////// /////////////////////////////////////////////7 function checkFields() /////////////////////////////////////////////7 { //alert($("#testo_it").val()); return Ab.validateForm('data','Data','R','titolo_it','Titolo Italiano','R'); } ///////////////////////////////////////////////// ////////////////////////////////////////////////// function addAllegatoNews() ///////////////////////////////////////////// { var f = document.main; f.action=f.actionPage.value; if (Ab.validateForm('nomeFile','Nome File','R')) { f.cmd.value="addAllegato"; f.act.value=""; Ab.submitAj('main'); } } function delAllegatoNews(l_id) ///////////////////////////////////////////// { if (Ab.confirmDelete()) { var f = document.main; f.action=f.actionPage.value; // FACCIO IL SUBMIT f.cmd.value="delAllegato"; f.act.value=""; f.id_allegatoNews.value=l_id; Ab.submitAj('main'); } } function inviaNews() ///////////////////////////////////////////// { if (confirm("Vuoi inviare la mail della news ai clienti abilitati?")) { var f = document.main; f.action=f.actionPage.value; // FACCIO IL SUBMIT f.cmd.value="inviaNews"; f.act.value=""; Ab.submitAj('main'); } } function checkRadioCR() {} function documentReadyScript() { /* CKEDITOR.editorConfig = function( config ) { config.toolbarGroups = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, { name: 'forms', groups: [ 'forms' ] }, { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, '/', { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, { name: 'links', groups: [ 'links' ] }, { name: 'insert', groups: [ 'insert' ] }, '/', { name: 'styles', groups: [ 'styles' ] }, { name: 'colors', groups: [ 'colors' ] }, { name: 'tools', groups: [ 'tools' ] }, { name: 'others', groups: [ 'others' ] }, { name: 'about', groups: [ 'about' ] } ]; config.removeButtons = 'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,About,Templates,Save,NewPage,Preview,Print'; }; */ //CKEDITOR.replace('sommario_it'); //$('.editor').jqte(); $('.summernote').summernote({ height: 300, // set editor height minHeight: null, // set minimum height of editor maxHeight: null, // set maximum height of editor focus: true // set focus to editable area after initializing summernote }); }