/** * Created by 10053417 on 22/06/15. */ function apri(url) { newin = window.open(url,'titolo','scrollbars=no,resizable=yes, width=800,height=500,status=no,location=no,toolbar=no'); } function closeSelf (f) { f.submit(); window.opener.location.reload(true); window.close(); } function deleteLab($id){ var selectBox = document.getElementById($id); var selectedValue = selectBox.options[selectBox.selectedIndex].value; selectBox.options[selectBox.selectedIndex] = null; var selectBox_from = document.getElementById($id_from); selectBox_from.blur(); //alert(selectedValue); //selectBox.remove(selectedValue,null); } function addLab($id,$id_target) { var selectBox = document.getElementById($id); var selectedText = selectBox.options[selectBox.selectedIndex].innerHTML; var selectedValue = selectBox.options[selectBox.selectedIndex].value; var selectBox_target = document.getElementById($id_target); var test = 0; var i = 0; for (i = 0; i < selectBox_target.options.length; i++) { if (selectBox_target.options[i].value == selectedValue){ test = 1; } } if (test == 0) { selectBox_target.options[selectBox_target.length] = new Option(selectedText, selectedValue); } } function selectAll($select_id) { try { selectBox = document.getElementById($select_id); for (var i = 0; i < selectBox.options.length; i++) { selectBox.options[i].selected = true; } } catch(err) { alert(err.message); } } tinymce.init({ selector: "textarea", plugins: [ // "advlist autolink lists link image charmap print preview anchor", "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", // "insertdatetime media table contextmenu paste" "insertdatetime table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" });