/* functions.js <?php
# --------------------------------------------------------------
# functions.js 2011-11-09 gambio
# Gambio GmbH
# http://www.gambio.de
# Copyright (c) 2011 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)
{
?>*/
function gm_calc_prices_listing(pID,p_force_request){if(typeof(p_force_request)=='undefined'){p_force_request=true}var gm_attr_calc=new GMAttributesCalculator();gm_attr_calc.calculate_listing(pID,p_force_request)}function gm_calc_prices(){var gm_attr_calc=new GMAttributesCalculator();gm_attr_calc.calculate()}function gm_quantity_check_listing(pID){var gm_quantity_checker=new GMOrderQuantityChecker();return gm_quantity_checker.check_listing(pID)}function gm_quantity_check(){var gm_quantity_checker=new GMOrderQuantityChecker();return gm_quantity_checker.check()}function submit_to_wishlist(){document.cart_quantity.submit_target.value="wishlist";document.cart_quantity.submit()}function submit_wishlist_to_cart(){var gm_quantity_checker=new GMOrderQuantityChecker(),no_error=gm_quantity_checker.check_cart();if(no_error){var no_error2=false;$('.wishlist_checkbox').each(function(){if($(this).attr('checked')==true){no_error2=true}});if(no_error2==false){alert('<?php echo GM_WISHLIST_NOTHING_CHECKED; ?>')}}if(no_error&&no_error2){document.cart_quantity.submit_target.value="wishlist";var target=document.cart_quantity.action;target=target.replace(/update_product/,"wishlist_to_cart");document.cart_quantity.action=target;document.cart_quantity.submit()}}function update_wishlist(){document.cart_quantity.submit_target.value="wishlist";var target=document.cart_quantity.action;target=target.replace(/update_product/,"update_wishlist");document.cart_quantity.action=target;document.cart_quantity.submit()}function check_paypal_form(){var error='',check=true;$('.accept_box_checkbox input').each(function(){if($(this).attr('type')=='checkbox'){if($(this).attr('checked')!=true){if($(this).attr('name')=='withdrawal')error=error+'<?php echo JS_ERROR_CONDITIONS_NOT_ACCEPTED_AGB; ?>';else if($(this).attr('name')=='conditions')error=error+'<?php echo JS_ERROR_CONDITIONS_NOT_ACCEPTED_WITHDRAWAL; ?>';check=false}}});if(error!='')alert(error);return check}function add_opensearch(opensearch_link,message){if(navigator.userAgent.match(/MSIE [7]\./)||navigator.userAgent.match(/Firefox/)){window.external.AddSearchProvider(opensearch_link)}else{alert(message)}}function gm_link_box_cart(gm_cart_link,box){$(box).css({"cursor":"pointer"});$(box).bind('click',function(){bind_cart_link(gm_cart_link)});$(box+' .gm_shipping_link').mouseover(function(){$(box).unbind('click')});$(box+' .gm_shipping_link').mouseout(function(){$(box).bind('click',function(){bind_cart_link(gm_cart_link)})})}function bind_cart_link(gm_cart_link){document.location=gm_cart_link}
/*<?php
}
else
{
?>*/
function gm_calc_prices_listing(pID, p_force_request){
if(typeof(p_force_request) == 'undefined')
{
p_force_request = true;
}
var gm_attr_calc= new GMAttributesCalculator();
gm_attr_calc.calculate_listing(pID, p_force_request);
}
function gm_calc_prices(){
var gm_attr_calc= new GMAttributesCalculator();
gm_attr_calc.calculate();
}
function gm_quantity_check_listing(pID){
var gm_quantity_checker = new GMOrderQuantityChecker();
return gm_quantity_checker.check_listing(pID);
}
function gm_quantity_check(){
var gm_quantity_checker = new GMOrderQuantityChecker();
return gm_quantity_checker.check();
}
function submit_to_wishlist() {
document.cart_quantity.submit_target.value = "wishlist";
document.cart_quantity.submit();
}
function submit_wishlist_to_cart() {
var gm_quantity_checker = new GMOrderQuantityChecker();
var no_error = gm_quantity_checker.check_cart();
if(no_error){
var no_error2 = false;
$('.wishlist_checkbox').each(function() {
if( $(this).attr('checked') == true){
no_error2 = true;
}
});
if(no_error2 == false){
alert('<?php echo GM_WISHLIST_NOTHING_CHECKED; ?>');
}
}
if(no_error && no_error2){
document.cart_quantity.submit_target.value = "wishlist";
var target = document.cart_quantity.action;
target = target.replace(/update_product/, "wishlist_to_cart");
document.cart_quantity.action = target;
document.cart_quantity.submit();
}
}
function update_wishlist() {
document.cart_quantity.submit_target.value = "wishlist";
var target = document.cart_quantity.action;
target = target.replace(/update_product/, "update_wishlist");
document.cart_quantity.action = target;
document.cart_quantity.submit();
}
function check_paypal_form(){
var error = '';
var check = true;
$('.accept_box_checkbox input').each(function(){
if($(this).attr('type') == 'checkbox'){
if($(this).attr('checked') != true){
if($(this).attr('name') == 'withdrawal') error = error + '<?php echo JS_ERROR_CONDITIONS_NOT_ACCEPTED_AGB; ?>';
else if($(this).attr('name') == 'conditions') error = error + '<?php echo JS_ERROR_CONDITIONS_NOT_ACCEPTED_WITHDRAWAL; ?>';
check = false;
}
}
});
if(error != '') alert(error);
return check;
}
function add_opensearch(opensearch_link, message) {
if (navigator.userAgent.match(/MSIE [7]\./) || navigator.userAgent.match(/Firefox/)) {
window.external.AddSearchProvider(opensearch_link);
} else {
alert(message);
}
}
function gm_link_box_cart(gm_cart_link, box) {
$(box).css({"cursor":"pointer"});
$(box).bind('click', function(){bind_cart_link(gm_cart_link)});
$(box + ' .gm_shipping_link').mouseover(function()
{
$(box).unbind('click');
});
$(box + ' .gm_shipping_link').mouseout(function()
{
$(box).bind('click', function(){bind_cart_link(gm_cart_link)});
});
}
function bind_cart_link(gm_cart_link)
{
document.location=gm_cart_link;
}
/*<?php
}
?>*/
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| jquery/ | 2013-11-12 21:03 | 587.44 KB | 76129f60960:kunden | dxwrx-rx-r | |
| GMAskOpensearch.js | 2013-11-12 21:03 | 2.31 KB | 76129f60960:kunden | -xw-x----- | |
| GMAttributeImages.js | 2013-11-12 21:03 | 2.52 KB | 76129f60960:kunden | -xw-x----- | |
| GMAttributesCalculator.js | 2013-11-12 21:03 | 6.12 KB | 76129f60960:kunden | -xw-x----- | |
| GMBestseller.js | 2013-11-12 21:03 | 1.7 KB | 76129f60960:kunden | -xw-x----- | |
| GMCallbackService.js | 2013-11-12 21:03 | 3 KB | 76129f60960:kunden | -xw-x----- | |
| GMCounter.js | 2013-11-12 21:03 | 580 B | 76129f60960:kunden | -xw-x----- | |
| GMGMotion.js | 2013-11-12 21:03 | 1.17 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintCartWishlistManager.js | 2013-11-12 21:03 | 18.28 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintConfiguration.js | 2013-11-12 21:03 | 2.74 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintElements.js | 2013-11-12 21:03 | 32.5 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderElements.js | 2013-11-12 21:03 | 4.68 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderSurfaces.js | 2013-11-12 21:03 | 13.3 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderSurfacesManager.js | 2013-11-12 21:03 | 11.72 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfaces.js | 2013-11-12 21:03 | 71.97 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfacesGroupsManager.js | 2013-11-12 21:03 | 2.92 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfacesManager.js | 2013-11-12 21:03 | 23.49 KB | 76129f60960:kunden | -xw-x----- | |
| GMImagesPopup.js | 2013-11-12 21:03 | 1.53 KB | 76129f60960:kunden | -xw-x----- | |
| GMLightBox.js | 2013-11-12 21:03 | 16.6 KB | 76129f60960:kunden | -xw-x----- | |
| GMLiveSearch.js | 2013-11-12 21:03 | 2.18 KB | 76129f60960:kunden | -xw-x----- | |
| GMMegaFlyOver.js | 2013-11-12 21:03 | 9.86 KB | 76129f60960:kunden | -xw-x----- | |
| GMOrderQuantityChecker.js | 2013-11-12 21:03 | 7.32 KB | 76129f60960:kunden | -xw-x----- | |
| GMProductImages.js | 2013-11-12 21:03 | 4.32 KB | 76129f60960:kunden | -xw-x----- | |
| GMScroller.js.php | 2013-11-12 21:03 | 3.18 KB | 76129f60960:kunden | -xw-x----- | |
| GMShowLightBox.js | 2013-11-12 21:03 | 3.57 KB | 76129f60960:kunden | -xw-x----- | |
| GMTellAFriend.js | 2013-11-12 21:03 | 3.61 KB | 76129f60960:kunden | -xw-x----- | |
| PreserveSessionHandler.js | 2013-11-12 21:03 | 2.19 KB | 76129f60960:kunden | -xw-x----- | |
| functions.js | 2013-11-12 21:03 | 5.93 KB | 76129f60960:kunden | -xw-x----- | |
| gm_form_styles.js | 2013-11-12 21:03 | 6.47 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.js | 2013-11-12 21:03 | 35.78 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_functions.js | 2013-11-12 21:03 | 2.5 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order.js | 2013-11-12 21:03 | 1.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_guestbook.js.php | 2013-11-12 21:03 | 3.52 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_details.js | 2013-11-12 21:03 | 3.91 KB | 76129f60960:kunden | -xw-x----- | |
| gm_shop_scripts.js | 2013-11-12 21:03 | 3.8 KB | 76129f60960:kunden | -xw-x----- | |
| gm_shopping_cart.js | 2013-11-12 21:03 | 934 B | 76129f60960:kunden | -xw-x----- | |
| gm_start.js.php | 2013-11-12 21:03 | 12.68 KB | 76129f60960:kunden | -xw-x----- | |
| gm_statusbar.js.php | 2013-11-12 21:03 | 3.68 KB | 76129f60960:kunden | -xw-x----- | |
| price_offer.js.php | 2013-11-12 21:03 | 1.16 KB | 76129f60960:kunden | -xw-x----- | |