/[drupal]/contributions/modules/magento/magento_products/js/show_up.js
ViewVC logotype

Diff of /contributions/modules/magento/magento_products/js/show_up.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by mtopolov, Thu Jun 25 09:53:56 2009 UTC revision 1.2 by mtopolov, Mon Nov 16 10:38:48 2009 UTC
# Line 0  Line 1 
1    if (Drupal.jsEnabled) {
2            $(document).ready(function() {
3                    if ($("#edit-magento-products-cache-time-CUSTOM").attr("checked") == true) {
4                            $("#cache_time").css("display","block");
5                    }
6                    $("#edit-magento-products-cache-time-CUSTOM").click(function () {
7                            $("#cache_time").css("display","block");
8                    return true;
9                    });
10                    $("#edit-magento-products-cache-time-CACHE-TEMPORARY").click(function () {
11                            $("#cache_time").css("display","none");
12                            $("#edit-magento-products-cache-custom-time").val(24);
13                    return true;
14                    });
15                    $("#edit-magento-products-cache-time-CACHE-PERMANENT").click(function () {
16                            $("#cache_time").css("display","none");
17                            $("#edit-magento-products-cache-custom-time").val(24);
18                    return true;
19                    });
20            });
21    }
22    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3