| 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/gm/javascript/ |
Upload File : |
/* GMAttributeImages.js <?php
# --------------------------------------------------------------
# GMAttributeImages.js 2015-06-09 gambio
# Gambio GmbH
# http://www.gambio.de
# Copyright (c) 2015 Gambio GmbH
# Released under the GNU General Public License (Version 2)
# [http://www.gnu.org/licenses/gpl-2.0.html]
# --------------------------------------------------------------
?>*/
/*<?php
if($GLOBALS['coo_debugger']->is_enabled('uncompressed_js') == false)
{
?>*/
$(document).ready(function(){var attr_img=new GMAttributeImages();attr_img.get_attribute_images();$(".gm_attr_calc_input").bind("change",function(){if(!$(this).hasClass("properties_values_select_field")){var attr_img=new GMAttributeImages();attr_img.get_attribute_images()}})});function GMAttributeImages(){this.get_attribute_images=function(){var gm_options_ids='',gm_values_ids='';$('.gm_attr_calc_input').each(function(){if($(this).prop('checked')==true){gm_options_ids+=$(this).attr('name')+',';gm_values_ids+=$(this).val()+','}});if(gm_options_ids==''){$('.gm_attr_calc_input').each(function(){gm_options_ids+=$(this).attr('name')+',';gm_values_ids+=$(this).val()+','})}$('#gm_attribute_images').load('request_port.php?module=Attributes&action=attribute_images&options_ids='+gm_options_ids+'&values_ids='+gm_values_ids,function(attribute_images){$('#gm_attribute_images').html(attribute_images)})};}
/*<?php
}
else
{
?>*/
$(document).ready(function(){
var attr_img = new GMAttributeImages();
attr_img.get_attribute_images();
$(".gm_attr_calc_input").bind("change", function(){
if(!$(this).hasClass("properties_values_select_field")){
var attr_img = new GMAttributeImages();
attr_img.get_attribute_images();
}
});
});
function GMAttributeImages()
{
this.get_attribute_images = function()
{
var gm_options_ids = '';
var gm_values_ids = '';
$('.gm_attr_calc_input').each(function()
{
if($(this).prop('checked') == true)
{
gm_options_ids += $(this).attr('name') + ',';
gm_values_ids += $(this).val() + ',';
}
});
if(gm_options_ids == '')
{
$('.gm_attr_calc_input').each(function()
{
gm_options_ids += $(this).attr('name') + ',';
gm_values_ids += $(this).val() + ',';
});
}
$('#gm_attribute_images').load('request_port.php?module=Attributes&action=attribute_images&options_ids=' + gm_options_ids + '&values_ids=' + gm_values_ids,
function(attribute_images)
{
$('#gm_attribute_images').html(attribute_images);
}
);
}
}
/*<?php
}
?>*/