| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/vesoul/media/com_acym/js/back/automation/ |
Upload File : |
jQuery(function(t){const a=t("#acym__automation__trigger__type__input").val();function _(a){t(".acym__automation__trigger__droppable__"+a).draggable({cursor:"dragging",revert:function(a){if(!a)return t(".acym__automation__droppable__drag").remove(),!0},revertDuration:300,start:function(_,e){t(".acym__automation__user-trigger__"+a).append('<div class="acym__automation__droppable__drag margin-top-1">'+t(e.helper).html()+"</div>")}}),t(".acym__automation__droppable__"+a).droppable({drop:function(_,i){t(this).find(".acym__automation__drag-here-text").remove();let o=t(".acym__automation__user-trigger__"+a);t(".acym__automation__user-trigger__"+a+" .acym__automation__droppable__trigger").length>0&&o.append('<div class="acym_trigger_delimiter">'+ACYM_JS_TXT.ACYM_OR+"</div>"),o.append('<div class="acym__automation__droppable__trigger margin-top-1"><div class="acym__automation__one__trigger">'+t(i.helper).html()+'</div><i data-trigger-show="'+t(i.helper).attr("data-trigger")+'" class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i></div>'),t(".acym__automation__droppable__drag").remove();let c=t(i.helper).attr("data-trigger");t(".acym__automation__all-trigger__"+a).append('<div class="acym__automation__trigger__droppable__'+a+' margin-top-1 cell" style="display: none" data-trigger="'+c+'">'+t(i.helper).html()+"</div>"),t(i.helper).remove(),e(a),r(a)}})}function e(a){t(".acym__automation__user-trigger__"+a+" [data-class]").each(function(){t(this).addClass(t(this).attr("data-class")),t(this).removeAttr("data-class")}),acym_helperSelect2.setSelect2(),acym_helperSelect2.setAjaxSelect2(),t(".acym__automation__user-trigger__"+a+" [name]").each(function(){t(this).attr("name").includes("stepAutomation")||t(this).attr("name","stepAutomation"+t(this).attr("name"))})}function r(a){t(".acym__automation__delete__trigger").off("click").on("click",function(){let e=t(this).closest(".acym__automation__droppable__trigger"),r=e.prev(".acym_trigger_delimiter");r.length?r.remove():e.next(".acym_trigger_delimiter").remove(),t("[data-trigger="+t(this).attr("data-trigger-show")+"]").show(),e.remove(),_(a)})}t("#acym__automation__info__desc__button").off("click").on("click",function(){let a=t('[name="automation[description]"]');a.is(":visible")?(a.hide(),t(this).find("i").removeClass("acymicon-keyboard-arrow-up").addClass("acymicon-keyboard-arrow-down")):(a.show(),t(this).find("i").removeClass("acymicon-keyboard-arrow-down").addClass("acymicon-keyboard-arrow-up"))}),t("#acym__automation__info__choose__trigger__type p").off("click").on("click",function(){t("#acym__automation__trigger__type__input").val(t(this).attr("data-trigger-type")).trigger("change"),t(".selected-trigger").removeClass("selected-trigger"),t(this).addClass("selected-trigger"),t(".acym__automation__info__choose__trigger").hide(),t("#acym__automation__info__choose__trigger__"+t(this).attr("data-trigger-type")).show()}),_("classic"),r("classic"),e("classic"),_("action"),r("action"),e("action"),t("#acym__automation__trigger__type__input").on("change",function(){"user"===a&&"classic"===t(this).val()?t("[data-task='saveInfo']").attr("data-confirmation-message","ACYM_CONDITIONS_AND_FILTERS_WILL_BE_DELETED"):t("[data-task='saveInfo']").removeAttr("data-confirmation-message")})});