Commit 3e8e52b8 authored by Tino Goratsch's avatar Tino Goratsch

add the transformed and minified JavaScript files

parent fc5614ab
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("input[name=\"active\"]").on("click change",function(){a("#publication-period-wrapper").toggle("1"===this.value)}).filter(":checked").click()});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){var b=a("#recaptcha-wrapper"),c=["captcha.extension.recaptcha_captcha_extension"];a(":input[name=\"captcha\"]").on("change",function(){b.toggle(-1!==c.indexOf(this.value))}).triggerHandler("change")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/ /* global onloadCallback:true */onloadCallback=function onloadCallback(){jQuery(".recaptcha-placeholder").each(function(){if(0===jQuery(this).children().length){var a=grecaptcha.render(this.id,{sitekey:this.dataset.sitekey,size:this.dataset.size});jQuery(this).data("recaptchaId",a)}})},jQuery(document).on("acp3.captcha.recaptcha",function(){onloadCallback()}),jQuery(document).on("acp3.ajaxFrom.submit.fail",function(a,b){var c=jQuery(b.element).find(".recaptcha-placeholder");c&&0<c.length&&grecaptcha.reset(c.data("recaptchaId"))});
\ No newline at end of file
"use strict";/**
* Cursorposition in einem Textfeld bestimmen
*
* @returns {*}
*/ /**
* Cursorposition in einem Textfeld an eine bestimme Position setzen
*
* @param pos
* @returns {jQuery.fn}
*/ /**
*
* @param textareaId
*/jQuery.fn.getCaretPosition=function(){if(this[0].selectionStart)return this[0].selectionStart;if(document.selection){this[0].focus();var a=document.selection.createRange();if(null==a)return 0;var b=this[0].createTextRange(),c=b.duplicate();return b.moveToBookmark(a.getBookmark()),c.setEndPoint("EndToStart",b),c.text.length}return 0},jQuery.fn.setCaretPosition=function(a){return this.each(function(b,c){if(c.setSelectionRange)c.setSelectionRange(a,a);else if(c.createTextRange){var d=c.createTextRange();d.collapse(!0),d.moveEnd("character",a),d.moveStart("character",a),d.select()}}),this},jQuery.fn.insertEmoticon=function(a){var b=0,c=$(a),d=$(this);// Aktuelle Cursorposition speichern
d.click(function(a){a.preventDefault();var d=c.val(),e=d.substr(0,b),f=d.substr(b);b+=$(this).attr("title").length+2,c.val(e+" "+$(this).attr("title")+" "+f).focus().setCaretPosition(b)}),c.blur(function(){b=c.getCaretPosition()})},jQuery(document).ready(function(a){a(".icons a").insertEmoticon(a(".icons").data("emoticons-input"))});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){a("input[name=\"active\"]").on("click change",function(){a("#publication-period-wrapper").toggle("1"===this.value)}).filter(":checked").click(),a(":checkbox[name=\"external\"]").on("click",function(){a("#file-external-toggle").toggle(a(this).is(":checked")),a("#file-internal-toggle").toggle(!a(this).is(":checked"))}).triggerHandler("click")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/jQuery(document).ready(function(a){a("input[name=\"active\"]").on("click change",function(){a("#publication-period-wrapper").toggle("1"===this.value)}).filter(":checked").click()});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){a("input[name=\"overlay\"]").on("change click",function(){a("#comments-container").toggle(0==this.value)}).filter(":checked").trigger("click")});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){a("#notify").on("change",function(){a("#notify-email").closest(".form-group").toggle(0!=this.value)}).children("option:selected").trigger("change")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/jQuery(document).ready(function(a){a("#modal-create [data-ajax-form=\"true\"]").formSubmit()});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/jQuery(document).ready(function(a){a("#modal-create").on("show.bs.modal",function(b){var c=a(b.relatedTarget),d=a(this);a.ajax(c.attr("href")).done(function(a){d.find(".modal-content").html(a),d.find("[data-ajax-form=\"true\"]").formSubmit()})})});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){var b=a("#module-container"),c=a("#link-container"),d=c.find(".help-block"),e=a("#articles-container"),f=a("#target-container"),g=/^articles\/index\/details\/id_(\d+)\/$/;// Wenn Menüpunkt nicht angezeigt werden soll, Linkziel verstecken
a("input[name=\"display\"]").change(function(){f.toggle(1==this.value),0==this.value&&a("#target").val(1)});var h=a("#mode"),i=h.val();// Seitentyp
h.change(function(){var f=parseInt(this.value);if(1!==f)2===f?(b.hide(),d.show(),c.show(),e.hide()):3===f?(b.hide(),d.hide(),c.show(),e.hide()):4===f?(b.hide(),d.hide(),c.hide(),e.show()):(b.hide(),d.hide(),c.hide(),e.hide());else// Modul im Dropdown-Menü selektieren, falls zuvor als Modus eine dynamische Seite aktiv war
if(b.show(),d.hide(),c.hide(),e.hide(),2===i){var h=a("#uri"),j=h.val().match(/^([a-z\d_-]+)\/([a-z\d_-]+\/)+$/);!h.val().match(g)&&null!=j[1]&&0<a("#module").find("option[value=\""+j[1]+"\"]").length&&a("#link-module").val(j[1])}i=f}).change(),a("#uri").blur(function(){var b=a(this).val().match(g);null!==b[1]&&0<a("#articles").find("option[value=\""+b[1]+"\"]").length&&(a("#mode").val(4).change(),a("#link-articles").val(b[1]))})});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){var b=a("#parent-id"),c=a("#block-id"),d=c.find("option:selected").index()||0;a(":checkbox[name=\"create_menu_item\"]").on("click",function(){a("#manage-menu-item-container").toggle(this.checked)}).triggerHandler("click"),c.change(function(){var e=c.find("option:selected").eq(0).text();b.find("optgroup").prop("disabled",!0).hide(),b.find("optgroup[label=\""+e+"\"]").prop("disabled",!1).show(),c.find("option").each(function(c){a(this).is(":selected")&&c!==d&&b.find("optgroup option:selected").removeAttr("selected")})}).triggerHandler("change")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("input[name=\"active\"]").on("click change",function(){a("#publication-period-wrapper").toggle("1"===this.value)}).filter(":checked").click()});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){a("input[name=\"readmore\"]").on("click change",function(){a("#readmore-container").toggle("1"===this.value)}).filter(":checked").click()});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){var b=a("#resources-table");b.find("tbody tr:not(.sub-table-header)").hide(),b.find(".sub-table-header").click(function(){a(this).nextUntil("tr.sub-table-header").toggle();var c=b.find("tbody tr:has(:checkbox):visible").length,d=0<c&&c===b.find("tbody tr.selected:visible").length;a("#mark-all").prop("checked",d)})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("#search-advanced-toggle").click(function(){a("#search-advanced-wrapper").toggleClass("d-none")})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a(":radio[name=\"sitemap_is_enabled\"]").on("click change",function(){a("#seo-sitemap-wrapper").toggle(1===parseInt(this.value))}).filter(":checked").triggerHandler("click")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/(function(a){'use strict';function b(b,d){this.element=b,this.settings=a.extend({},c,d),this._defaults=c,this._name="suggestAlias",this.init()}var c={prefix:"",slugBaseElement:null,aliasElement:null};a.extend(b.prototype,{init:function init(){var b=this;a(this.element).on("click",function(a){a.preventDefault(),b.performAjaxRequest()})},performAjaxRequest:function performAjaxRequest(){if(this.canPerformAjaxRequest()){var b=this;a.ajax({url:b.element.href,type:"post",data:{prefix:b.settings.prefix,title:b.settings.slugBaseElement.val()},beforeSend:function beforeSend(){a(b.element).addClass("disabled")},success:function success(c){try{"undefined"!=typeof c.alias&&0<c.alias.length&&a(b.settings.aliasElement).val(c.alias)}catch(a){console.error(a.message)}finally{a(b.element).removeClass("disabled")}}})}},/**
* @returns {boolean}
*/canPerformAjaxRequest:function canPerformAjaxRequest(){return null!==this.settings.slugBaseElement&&null!==this.settings.aliasElement&&""!==this.settings.slugBaseElement.val()}}),a.fn.suggestAlias=function(c){return this.each(function(){a.data(this,"plugin_suggestAlias")||a.data(this,"plugin_suggestAlias",new b(this,c))})}})(jQuery),jQuery(document).ready(function(a){a("#seo-alias-suggestion").suggestAlias({prefix:a("[data-seo-slug-prefix]").data("seo-slug-prefix"),slugBaseElement:a("[data-seo-slug-base=\"true\"]"),aliasElement:a("#alias")})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENCE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("#services").on("change",function(){a("#fb-credentials-wrapper").toggle(a(this).val()&&-1!==a(this).val().indexOf("facebook"))}).triggerHandler("change")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENCE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("#rating-wrapper").on("change",":radio",function(){a(".rating__average").remove(),a(".rating__already-rated").remove(),a(this).closest("form").submit()}).on("click",".rating__average .rating__star",function(){// .rating__average sets the direction back to ltr, so we have to account for this
var b=4-a(this).index();a(".rating > .rating__star").eq(b).addClass("rating__star_active").click()})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENCE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a(":radio[name=\"share_active\"]").on("click change",function(){a("#share-services-wrapper").toggle(1===parseInt(this.value))}).filter(":checked").triggerHandler("click"),a(":radio[name=\"share_customize_services\"]").on("click change",function(){a("#share-custom-services-wrapper").toggle(1===parseInt(this.value))}).filter(":checked").triggerHandler("click")});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){a(":radio[name=\"site_subtitle_mode\"]").on("click change",function(){a("#site-subtitle-homepage-home-container").toggle(3!=this.value)}).filter(":checked").triggerHandler("click"),a(":radio[name=\"cookie_consent_is_enabled\"]").on("click change",function(){a("#cookie-consent-container").toggle(1==this.value)}).filter(":checked").triggerHandler("click"),a(":radio[name=\"maintenance_mode\"]").on("click change",function(){a("#maintenance-message-container").toggle(1==this.value)}).filter(":checked").triggerHandler("click"),a(":radio[name=\"mailer_smtp_auth\"]").on("click change",function(){a("#mailer-smtp-2").toggle(1==this.value)}).filter(":checked").triggerHandler("click"),a("#mailer-type").on("change",function(){"smtp"===a(this).val()?(a("#mailer-smtp-1").show(),a("input[name=\"mailer_smtp_auth\"]:checked").trigger("click")):a("#mailer-smtp-1, #mailer-smtp-2").hide()}).trigger("change")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENCE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("[data-add-tab-identifier]").each(function(){var b=a(this).data("add-tab-identifier"),c=a(b),d=c.closest(".tab-content"),e=d.prev(".nav-tabs"),f=a(this).data("add-tab-title");e.append("<li class=\"nav-item\"><a href=\""+b+"\" class=\"nav-link\" data-toggle=\"tab\">"+f+"</a></li>")})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/(function(a,b,c){'use strict';function d(b,c){this.element=b,this.isFormValid=!0,this.settings=a.extend({},e,c),this._defaults=e,this._name="formSubmit",this.init()}var e={targetElement:"#content",loadingOverlay:!0,loadingText:"",customFormData:null,scrollOffsetElement:null};a.extend(d.prototype,{init:function init(){var b=this;this.mergeSettings(),this.findSubmitButton(),this.addLoadingLayer(),this.element.noValidate=!0,a(this.element).on("submit",function(d){d.preventDefault(),b.isFormValid=!0,a(c).trigger("acp3.ajaxFrom.submit.before",[b]),b.isFormValid&&b.preValidateForm(b.element)&&b.processAjaxRequest()}).on("click",function(c){"A"===a(this).prop("tagName")&&(c.preventDefault(),b.processAjaxRequest())}).on("change",function(){!1===b.isFormValid&&(b.removeAllPreviousErrors(b.element),b.checkFormElementsForErrors(b.element))})},mergeSettings:function mergeSettings(){var b=a(this.element).data();for(var c in b)if(b.hasOwnProperty(c)){var d=this.lowerCaseFirstLetter(c.replace("ajaxForm",""));0<d.length&&"undefined"!=typeof this.settings[d]&&(this.settings[d]=b[c])}},lowerCaseFirstLetter:function lowerCaseFirstLetter(a){return a.charAt(0).toLowerCase()+a.slice(1)},findSubmitButton:function findSubmitButton(){a(this.element).find(":submit").click(function(){a(":submit",a(this).closest("form")).removeAttr("data-clicked"),a(this).attr("data-clicked","true")})},preValidateForm:function preValidateForm(a){return this.removeAllPreviousErrors(a),this.checkFormElementsForErrors(a),this.focusTabWithFirstErrorMessage(a),this.scrollToFirstFormError(),this.isFormValid},removeAllPreviousErrors:function removeAllPreviousErrors(b){a(b).find(".is-invalid").removeClass(".is-invalid"),a(b).find(".invalid-feedback").remove()},checkFormElementsForErrors:function checkFormElementsForErrors(b){for(var c,d=0;d<b.elements.length;d++)(c=b.elements[d],"INPUT"===c.nodeName||"TEXTAREA"===c.nodeName||"SELECT"===c.nodeName)&&(c.checkValidity()||(this.addErrorMessageToFormField(a(c),c.validationMessage),this.isFormValid=!1))},removeErrorMessageFromFormField:function removeErrorMessageFromFormField(a){a.closest("div").find(".invalid-feedback").remove()},addErrorMessageToFormField:function addErrorMessageToFormField(a,b){this.removeErrorMessageFromFormField(a),a.addClass("is-invalid");a.closest("div:not(.input-group):not(.btn-group)").append("<div class=\"invalid-feedback d-block\"><i class=\"fas fa-exclamation-triangle\"></i> "+b+"</div>")},focusTabWithFirstErrorMessage:function focusTabWithFirstErrorMessage(b){var c=a(b),d=c.find(".nav-tabs");if(0<d.length){var e=c.find(".tab-content .form-group:has(.invalid-feedback):first"),f=e.closest(".tab-pane").prop("id");d.find(".nav-link[href=\"#"+f+"\"]").tab("show"),e.find(":input").focus()}},processAjaxRequest:function processAjaxRequest(){var d,e,f=this,g=a(this.element),h=!a.isEmptyObject(this.settings.customFormData),i=!0,j=this.settings.customFormData||{};if(g.attr("method")){if(e=a(":submit[data-clicked=\"true\"]",g),d=e.data("hashChange"),j=new FormData(g[0]),e.length&&j.append(e.attr("name"),1),h)for(var k in this.settings.customFormData)this.settings.customFormData.hasOwnProperty(k)&&j.append(k,this.settings.customFormData[k]);i=!1}else d=g.data("hashChange");a.ajax({url:g.attr("action")||g.attr("href"),type:g.attr("method")?g.attr("method").toUpperCase():"GET",data:j,processData:i,contentType:!!i&&"application/x-www-form-urlencoded; charset=UTF-8",beforeSend:function beforeSend(){f.showLoadingLayer(e),f.disableSubmitButton(e)}}).done(function(a){try{var c=g.data("ajax-form-complete-callback");"function"==typeof b[c]?b[c](a):a.redirect_url?f.redirectToNewPage(d,a):(f.scrollIntoView(),f.replaceContent(d,a),f.rebindHandlers(d),"undefined"!=typeof d&&(b.location.hash=d))}catch(a){console.error(a.message)}}).fail(function(b){400===b.status?(f.handleFormErrorMessages(g,b.responseText),f.scrollToFirstFormError(),a(c).trigger("acp3.ajaxFrom.submit.fail",[f])):0<b.responseText.length&&(c.open(),c.write(b.responseText),c.close())}).always(function(){f.hideLoadingLayer(),f.enableSubmitButton(e)})},addLoadingLayer:function addLoadingLayer(){if(!1!==this.settings.loadingOverlay){var b=a("#loading-layer");if(0===b.length){var c=a("body"),d=this.settings.loadingText||"";a("<div id=\"loading-layer\" class=\"loading-layer\"><h1><span class=\"fas fa-cog fa-spin\"></span>"+d+"</h1></div>").appendTo(c)}}},showLoadingLayer:function showLoadingLayer(){a("#loading-layer").addClass("loading-layer__active")},disableSubmitButton:function disableSubmitButton(a){"undefined"!=typeof a&&a.prop("disabled",!0)},enableSubmitButton:function enableSubmitButton(a){"undefined"!=typeof a&&a.prop("disabled",!1)},redirectToNewPage:function redirectToNewPage(a,c){"undefined"==typeof a?b.location.href=c.redirect_url:(b.location.href=c.redirect_url+a,b.location.reload())},/**
* Scroll to the beginning of the content area, if the current viewport is near the bottom
*/scrollIntoView:function scrollIntoView(){var b=a(this.settings.targetElement).offset().top;a(c).scrollTop()>b&&a("html, body").animate({scrollTop:b},"fast")},replaceContent:function replaceContent(b,c){b&&a(b).length?a(b).html(a(c).find(b).html()):a(this.settings.targetElement).html(c)},rebindHandlers:function rebindHandlers(b){var c=b&&a(b).length?a(b):a(this.settings.targetElement);c.find("[data-ajax-form=\"true\"]").formSubmit(),this.findSubmitButton()},hideLoadingLayer:function hideLoadingLayer(){a("#loading-layer").removeClass("loading-layer__active")},handleFormErrorMessages:function handleFormErrorMessages(b,c){var d=a("#error-box"),e=b.find(".modal-body");// Place the error messages inside the modal body for a better styling
d.remove(),d=a(c),d.hide().prependTo(0<e.length&&e.is(":visible")?e:b).fadeIn(),this.prettyPrintResponseErrorMessages(b,d)},prettyPrintResponseErrorMessages:function prettyPrintResponseErrorMessages(b,c){var d=this;// highlight all input fields where the validation has failed
this.removeAllPreviousErrors(d.element),c.find("li").each(function(){var c=a(this),e=c.data("error");if(0<e.length){var f=b.find("#"+e)||b.find("[id|=\""+e+"\"]").filter(":not([id$=\"container\"])");0<f.length&&1===f.length&&(d.addErrorMessageToFormField(f,c.html()),c.remove())}}),0===c.find("li").length&&c.remove(),this.focusTabWithFirstErrorMessage(d.element)},scrollToFirstFormError:function scrollToFirstFormError(){var b=a(this.element),c=b.find(".form-group.has-error");if(c&&0!==c.length&&!this.isElementInViewport(b.find(".help-block.validation-failed"))){var d=c.offset().top;if(this.settings.scrollOffsetElement){var e=a(this.settings.scrollOffsetElement);e&&0<e.length&&(d-=e.height())}a("html, body").animate({scrollTop:d},"fast")}},isElementInViewport:function isElementInViewport(d){"function"==typeof jQuery&&d instanceof jQuery&&(d=d[0]);var e=a(this.settings.scrollOffsetElement),f=0;e&&(f=e.height());var g=d.getBoundingClientRect();return g.top>=f&&0<=g.left&&g.bottom<=(b.innerHeight||c.documentElement.clientHeight)&&g.right<=(b.innerWidth||c.documentElement.clientWidth)}}),a.fn.formSubmit=function(b){return this.each(function(){a.data(this,"plugin_formSubmit")||a.data(this,"plugin_formSubmit",new d(this,b))})}})(jQuery,window,document),jQuery(document).ready(function(a){a("[data-ajax-form=\"true\"]").formSubmit(),a(document).on("draw.dt",function(b){a(b.target).find("[data-ajax-form=\"true\"]").formSubmit()})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){var b=a("#cookie-consent");a("#accept-cookies").click(function(){Cookies.set("ACCEPT_COOKIES",!0,{expires:365}),b.fadeOut()}),Cookies.get("ACCEPT_COOKIES")||b.removeClass("d-none")});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENCE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){a("[data-datatable-init]").each(function(){var b=a(this),c=b.data("datatable-init");b.dataTable(c)})});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){var b=a("[data-datepicker-range]"),c=a("[data-datepicker]");a.fn.datetimepicker.Constructor.Default=a.extend({},a.fn.datetimepicker.Constructor.Default,{icons:{time:"fas fa-clock",date:"fas fa-calendar",up:"fas fa-arrow-up",down:"fas fa-arrow-down",previous:"fas fa-chevron-left",next:"fas fa-chevron-right",today:"fas fa-calendar-check-o",clear:"fas fa-trash",close:"fas fa-times"},format:"YYYY-MM-DD HH:mm"}),0<b.length&&b.each(function(){var c=b.data("datepicker-range"),d=a(c[0].element),f=a(c[1].element);d.datetimepicker(c[0]),f.datetimepicker(c[1]),d.on("change.datetimepicker",function(a){f.datetimepicker("minDate",a.date)}),f.on("change.datetimepicker",function(a){d.datetimepicker("maxDate",a.date)})}),0<c.length&&c.each(function(){a(this).datetimepicker(a(this).data("datepicker"))})});
\ No newline at end of file
"use strict";jQuery(document).ready(function(a){var b=a(window);b.on("hashchange",function(){var b=location.hash,c=a("a[href=\""+b+"\"]"),d=a(b);c.length?c.click():d.length&&d.click()}),location.hash&&b.trigger("hashchange")});
\ No newline at end of file
"use strict";var cssClassName="row-selected bg-light",markEntries=function(a,b,c){var d=a.parents("thead:first").next("tbody").find("input[name=\""+b+"[]\"]:visible");jQuery.each(d,function(){var a=jQuery(this).prop("checked","add"===c).parents("tr:first");a.toggleClass(cssClassName,"add"===c)})},toggleMassActionsBar=function(){var a=jQuery(".datagrid-mass-actions");if(0!==a.find(".container").children().length){var b=jQuery(".datagrid-column__mass-action:not(th) :checkbox:checked");a.toggleClass("d-none",0===b.length)}},setMassActionCheckboxState=function(a,b,c){var d=b.find("input[name=\""+c+"[]\"]:visible").length,e=b.find("input[name=\""+c+"[]\"]:checked").length;0===d||0===e?(a.prop("checked",!1),a.prop("indeterminate",!1)):e<d?(a.prop("checked",!1),a.prop("indeterminate",!0)):(a.prop("checked",!0),a.prop("indeterminate",!1))};/**
* Marks all visible results
*
* @param $massActionCheckbox
* @param name
* @param action
*/ /**
*
* @param checkboxName
* @returns {*|jQuery|HTMLElement}
*/ /**
*
* @param options
* @returns {*|jQuery|HTMLElement}
*/jQuery.fn.highlightTableRow=function(a){var b=$(this);return b.closest("table").on("click","tr:has(td :checkbox)",function(c){var d=$(this),e=d.closest("tbody");if("checkbox"!==c.target.type){if("A"===c.target.nodeName)return;var f=$("input[name=\""+a+"[]\"]",this);f.prop("checked",!f.is(":checked"))}d.toggleClass(cssClassName),toggleMassActionsBar(),setMassActionCheckboxState(b,e,a)}),b},jQuery.fn.deleteMarkedResults=function(a){var b=$(this),c=$.extend({checkBoxName:"",language:{confirmationTextSingle:"",confirmationTextMultiple:"",noEntriesSelectedText:""},bootboxLocale:"en"},a);return b.on("click",function(a){a.preventDefault();var d=$("form .table input[name=\""+c.checkBoxName+"[]\"]:checked");if(0<d.length){var e=1===d.length?c.language.confirmationTextSingle:c.language.confirmationTextMultiple.replace("{items}",d.length);bootbox.confirm({message:e,locale:c.bootboxLocale,callback:function callback(a){if(a){var c=b.closest("form");c.formSubmit({customFormData:{action:"confirmed"}}),c.triggerHandler("submit")}}})}else bootbox.alert({message:c.language.noEntriesSelectedText,locale:c.bootboxLocale})}),b},jQuery(document).ready(function(a){var b=a("[data-mark-all-id]");b.each(function(b,c){var d=a(c);d.click(function(){markEntries(d,d.data("checkbox-name"),d.is(":checked")?"add":"remove"),toggleMassActionsBar()}).highlightTableRow(d.data("checkbox-name"))}),a(".datagrid-mass-actions .fa-trash").closest(".btn").deleteMarkedResults(b.data("delete-options"))});
\ No newline at end of file
"use strict";/* global wysiwygCallback */jQuery(document).ready(function(a){a("#page-break-form").find(".modal-footer button.btn-primary").click(function(b){b.preventDefault();var c,d=a("#toc-title");c=0<d.val().length?"<hr class=\"page-break\" title=\""+d.val()+"\" />":"<hr class=\"page-break\" />",wysiwygCallback(c),a("#page-break-form").modal("hide")})});
\ No newline at end of file
......@@ -12,13 +12,12 @@ module.exports = (gulp, plugins) => {
return gulp
.src(
[
'./ACP3/Modules/*/*/Resources/Assets/js/**/*.js',
'./ACP3/Modules/*/*/Resources/Assets/js/{admin,frontend,partials}/*.js',
'./designs/**/Assets/js/**/*.js',
'./installation/design/Assets/js/*.js',
'./installation/Installer/Modules/*/Resources/Assets/js/*.js',
// Exclude all already minified files
'!./ACP3/Modules/*/*/Resources/Assets/js/**/*.min.js',
'!./ACP3/Modules/ACP3/Wysiwygckeditor/Resources/Assets/js/ckeditor/**/*.js',
'!./ACP3/Modules/*/*/Resources/Assets/js/{admin,frontend,partials}/*.min.js',
'!./designs/**/Assets/js/**/*.min.js',
'!./installation/design/Assets/js/*.min.js',
'!./installation/Installer/Modules/*/Resources/Assets/js/*.min.js'
......
......@@ -16,7 +16,7 @@
gulp.task('copy', getTask('copy'));
gulp.task('bump-version', getTask('bump-version'));
gulp.task('scss', getTask('scss'));
gulp.task('babel-js', getTask('babel-js'));
gulp.task('babel', getTask('babel'));
gulp.task('watch', gulp.series('scss', getTask('watch')));
gulp.task('default', gulp.series('watch'));
......
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){var b=a("#config-form").data("available-databases-url"),c=a("#db-name"),d=a("#db-host, #db-user, #db-password");d.change(function(){c.prop("disabled",!0).find("option").not(":first").remove(),d.removeClass("is-invalid"),d.removeClass("is-valid"),a.post(b,{db_host:a("#db-host").val(),db_user:a("#db-user").val(),db_password:a("#db-password").val()},function(a){if(0===a.length)return void d.addClass("is-invalid");for(var b=0;b<a.length;++b)c.append("<option value=\""+a[b]+"\">"+a[b]+"</option>");d.addClass("is-valid")}).always(function(){c.prop("disabled",!1)})})});
\ No newline at end of file
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/jQuery(document).ready(function(a){var b=a(document),c=a("#languages");b.data("has-changes",!1),a("#content").find(":input").change(function(){b.data("has-changes",!0)}),c.find(".btn").addClass("d-none"),a("#lang").change(function(){var d=!0;0<b.length&&!0===b.data("has-changes")&&(d=confirm(a(this).data("change-language-warning"))),!0===d&&c.submit()})});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment