| 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/legacy/filter/ |
Upload File : |
$(".feature_values a",t_lightbox_package).off("mousedown"),$(t_lightbox_package).on("mousedown",".feature_values a",{},function(){return!1});var products_id=t_lightbox_parameters["_"+t_lightbox_identifier].products_id,categories_path=t_lightbox_parameters["_"+t_lightbox_identifier].categories_path,feature_set_id=t_lightbox_parameters["_"+t_lightbox_identifier].feature_set_id;$(document).ready(function(){$(".gambio_scrollbar").jScrollPane(),console.log("========================"),console.log(t_lightbox_package),console.log("========================")}),$(".delete_feature_box",t_lightbox_package).off("click"),$(t_lightbox_package).on("click",".delete_feature_box",{},function(){var e=$(this).attr("rel"),t=$("#feature_id_"+e,t_lightbox_package),a=$(t,t_lightbox_package).find(".feature_box_headline span").html();$(t,t_lightbox_package).remove();var _='<option value="'+e+'">'+a+"</option>",r=$("#feature_set_add_feature_select select",t_lightbox_package);return $(r).append(_),$(r).html($("option",$(r)).sort(function(e,t){return e=e.text.toLowerCase(),t=t.text.toLowerCase(),e==t?0:e<t?-1:1})),$(r).val(0),$("#feature_set_add_feature_select",t_lightbox_package).css("visibility","visible"),!1}),$("select[name='add_feature']",t_lightbox_package).off("change"),$(t_lightbox_package).on("change","select[name='add_feature']",{},function(){var e=$(this).val();return 0!=e&&($.ajax({data:{feature_id:e},url:"request_port.php?module=FeatureSetAdmin&action=get_feature_box",type:"POST",timeout:1e4,dataType:"html",error:function(){$(".lightbox_error").html("Error: Feature box could not be added")},success:function(e){if($.isEmptyObject(e))$(".lightbox_error").html("Error: Feature box could not be added");else{$(".feature_box",t_lightbox_package).length>0?$(".feature_box",t_lightbox_package).last().after(e):$(".feature_set_box",t_lightbox_package).prepend(e);var t=e.substring(e.indexOf("feature_id_")+"feature_id_".length);t=t.substring(0,t.indexOf('"')),$("#feature_set_add_feature_select option[value='"+t+"']",t_lightbox_package).remove(),1==$("#feature_set_add_feature_select option",t_lightbox_package).length&&$("#feature_set_add_feature_select",t_lightbox_package).css("visibility","hidden"),$(".gambio_scrollbar").jScrollPane()}return!1}}),!1)}),$(".editable_values .feature_values a",t_lightbox_package).off("click"),$(t_lightbox_package).on("click",".editable_values .feature_values a",{},function(){return $(this).toggleClass("active"),!1}),$(".save",t_lightbox_package).off("click"),$(t_lightbox_package).on("click",".save",{},function(){var e=this,t=new Array;return $.each($(".feature_values a.active"),function(){t.push($(this).attr("rel"))}),0==t.length?($.lightbox_plugin("error",t_lightbox_identifier,"feature_set_no_values_selected"),!1):($(".lightbox_content_error",t_lightbox_package).html(""),$.ajax({data:{categories_path:categories_path,feature_set_id:feature_set_id,products_id:products_id,feature_value:t.join("&")},url:"request_port.php?module=FeatureSetAdmin&action=save",type:"POST",timeout:5e3,dataType:"json",error:function(e,t){$.lightbox_plugin("error",t_lightbox_identifier,e,t)},success:function(t){return"error"==t.status?void $.lightbox_plugin("error",t_lightbox_identifier,"feature_set_cant_save"):("success"==t.status&&(0!=feature_set_id?($("#feature_set_id_"+feature_set_id).replaceWith(t.html),$("#feature_set_id_"+feature_set_id).next().remove()):$("#feature_set_box_container").prepend(t.html)),$(".lightbox_content_error").html(""),""!=t.message&&($(".lightbox_content_error").html(t.message),$(".lightbox_content_error").show()),$(e).hasClass("close")?$.lightbox_plugin("close",t_lightbox_identifier):0==feature_set_id&&"success"==t.status&&$(".feature_values a",t_lightbox_package).removeClass("active"),void $.routeFeatureSets())}}),!1)});