| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/admin/html/assets/javascript/engine/widgets/ |
Upload File : |
"use strict";gx.widgets.module("catalog_selector",[gx.source+"/widgets/collapser"],function(t){function e(t){var e="admin.php?do=CatalogSelectWidgetAjax/",n={url:e+t,async:!1,dataType:"json"};return $.ajax(n)}function n(){l.clone().appendTo(d.find(".catalog-selection-data")).find(s.label_selector).empty().parent().find(s.remove_selector).append('<i class="fa fa-trash-o" aria-hidden="true"></i>').find("i").on("click",a)}function a(){$(this).closest(s.group_selector).remove()}function o(){if(""!=s.selected_data)if(String(s.selected_data).indexOf(",")==-1)d.find(s.dropdown_selector+":last").val(s.selected_data),n();else{var t=s.selected_data.split(",");console.log(t);for(var e in t)d.find(s.dropdown_selector+":last").val(t[e]),n()}}var d=$(this),l={},c="",r={group_selector:".form-group",label_selector:"label",dropdown_selector:".catalog-selector-dropdown",remove_selector:".catalog-selector-remove",selected_data:""},s=$.extend(!0,{},r,t),i={};return i.init=function(t){e("getProductsTreeAsOptgroups").done(function(t){c=t.html}),d.append('\n\t\t\t\t\t<fieldset>\n\t <div class="frame-wrapper default">\n\t\t\t\t\t\t\t<div class="frame-head"\n\t\t\t\t\t\t\t\tdata-gx-widget="collapser"\n\t\t\t\t\t\t\t\tdata-collapser-target_selector=".frame-content">\n\t\t\t\t\t\t\t\t'+s.headline_text+'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="frame-content">\n\t\t\t\t\t\t\t\t<div class="catalog-selection-data"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</fieldset>\n\t\t\t'),d.find(".catalog-selection-data").parent().append('\n\t\t\t\t\t<button type="button" class="btn catalog-selection-new-dropdown">\n\t\t\t\t\t\t'+s.add_button_text+"\n\t\t\t\t\t</button>\n\t\t\t\t").find(".catalog-selection-new-dropdown").on("click",n),gx.widgets.init(d.parent()),l=d.find(s.group_selector),d.find(s.group_selector).remove(),l.find(s.dropdown_selector).append(c),l.clone().appendTo(d.find(".catalog-selection-data")),o(),t()},i});