var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); function deleteItem(form) { $(form).attr('action', $('#deleteAction').val()); $(form).submit(); } $(document).ready(function () { $('#mainmenu ul').menu({}); $(".cleditor").cleditor({ controls: "bold italic underline strikethrough subscript superscript | " + "style | bullets numbering | outdent " + "indent | alignleft center alignright justify | undo redo | " + "rule image link unlink | cut copy paste pastetext | print source", }); $(".cleditor-nocontrol").cleditor({ controls: "", }); $(".cleditor-min").cleditor({ controls: "bold italic underline subscript superscript | bullets numbering | undo redo | " + "link unlink | cut copy paste pastetext | source", }); $( ".datefrom" ).datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 3, dateFormat: "yy-mm-dd", onClose: function( selectedDate ) { $( ".dateto" ).datepicker( "option", "minDate", selectedDate ); } }); $( ".dateto" ).datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 1, dateFormat: "yy-mm-dd", onClose: function( selectedDate ) { $( ".datefrom" ).datepicker( "option", "maxDate", selectedDate ); } }); }); }