| | |
| | | }); |
| | | } |
| | | |
| | | $('input[data-input-element="date"]').datetimepicker({ |
| | | 'language': 'en', // TODO |
| | | 'todayHighlight': true, |
| | | 'todayBtn': 'linked', |
| | | 'bootcssVer': 3, |
| | | 'fontAwesome': true, |
| | | 'autoclose': true, |
| | | 'minView': 'month' |
| | | }); |
| | | $('input[data-input-element="datetime"]').datetimepicker({ |
| | | 'language': 'en', // TODO |
| | | 'todayHighlight': true, |
| | | 'todayBtn': 'linked', |
| | | 'bootcssVer': 3, |
| | | 'fontAwesome': true, |
| | | 'autoclose': true |
| | | }); |
| | | |
| | | ISPConfig.callHook('onAfterContentLoad', {'url': url, 'data': data }); |
| | | }, |
| | | |
| | |
| | | }); |
| | | }, |
| | | |
| | | loadOptionInto: function(elementid,pagename) { |
| | | loadOptionInto: function(elementid,pagename,callback) { |
| | | var pageContentObject2 = $.ajax({ |
| | | type: "GET", |
| | | url: pagename, |
| | |
| | | foo2.appendChild(document.createTextNode(elemente[i])); |
| | | foo2.value=elemente[i]; |
| | | el.appendChild(foo2); |
| | | } |
| | | if (typeof(callback) != 'undefined') { |
| | | callback(elementid,pagename); |
| | | } |
| | | }, |
| | | error: function() { |
| | |
| | | }); |
| | | |
| | | $(document).on('click', 'a[data-load-content],button[data-load-content]', function(e) { |
| | | e.preventDefault(); |
| | | //e.preventDefault(); |
| | | var content_to_load = $(this).attr('data-load-content'); |
| | | if(!content_to_load) return this; |
| | | |
| | |
| | | }); |
| | | |
| | | $(document).on('click', 'a[data-capp],button[data-capp]', function(e) { |
| | | e.preventDefault(); |
| | | //e.preventDefault(); |
| | | var content_to_load = $(this).attr('data-capp'); |
| | | if(!content_to_load) return this; |
| | | |
| | |
| | | }); |
| | | |
| | | $(document).on('click', 'a[data-submit-form],button[data-submit-form]', function(e) { |
| | | e.preventDefault(); |
| | | //e.preventDefault(); |
| | | |
| | | var $el = $(this); |
| | | var act = $el.attr('data-form-action'); |
| | |
| | | |
| | | var dir = $self.attr('data-ordered'); |
| | | |
| | | act = act + '?orderby=' + column; |
| | | var separator = '?'; |
| | | if(act.indexOf("?") >= 0){ |
| | | separator = '&'; |
| | | } |
| | | act = act + separator + 'orderby=' + column; |
| | | ISPConfig.submitForm(form, act); |
| | | |
| | | $(document).ajaxComplete(function() { |
| | |
| | | if ($("#pageForm .table #Filter").length > 0) { |
| | | e.preventDefault(); |
| | | } |
| | | }); |
| | | |
| | | $('#globalsearch').ispconfigSearch({ |
| | | dataSrc: '/dashboard/ajax_get_json.php?type=globalsearch', |
| | | resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">', |
| | | noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">', |
| | | noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">', |
| | | searchFieldWatermark: '<tmpl_var name="globalsearch_searchfield_watermark_txt">', |
| | | resultBoxPosition: '' |
| | | }); |
| | | }); |