Mage_GoogleCheckout_Block_Adminhtml_Shipping_Applicable_Countries Class Reference

Inheritance diagram for Mage_GoogleCheckout_Block_Adminhtml_Shipping_Applicable_Countries:

Mage_Adminhtml_Block_System_Config_Form_Field Mage_Adminhtml_Block_Abstract Varien_Data_Form_Element_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _getElementHtml (Varien_Data_Form_Element_Abstract $element)
 _appendJs ($element)

Protected Attributes

 $_addRowButtonHtml = array()
 $_removeRowButtonHtml = array()


Detailed Description

Definition at line 27 of file Countries.php.


Member Function Documentation

_appendJs ( element  )  [protected]

Definition at line 40 of file Countries.php.

00041     {
00042         $elId = $element->getHtmlId();
00043         $childId = str_replace('sallowspecific', 'specificcountry', $elId);
00044         $html = "<script>
00045         var dwvie = function ()
00046         {
00047             var valueSelectId = '{$elId}';
00048             var elementToDisableId = '{$childId}';
00049 
00050             var source = $(valueSelectId);
00051             var target = $(elementToDisableId);
00052 
00053             if (source.options[source.selectedIndex].value == '0') {
00054                 target.disabled = true;
00055             } else {
00056                 target.disabled = false;
00057             }
00058         }
00059 
00060         Event.observe('{$elId}', 'change', dwvie);
00061         Event.observe(window, 'load', dwvie);
00062         </script>";
00063         return $html;
00064     }

_getElementHtml ( Varien_Data_Form_Element_Abstract element  )  [protected]

Enter description here...

Parameters:
Varien_Data_Form_Element_Abstract $element
Returns:
string

Reimplemented from Mage_Adminhtml_Block_System_Config_Form_Field.

Definition at line 33 of file Countries.php.

00034     {
00035         $html = parent::_getElementHtml($element);
00036         $html .= $this->_appendJs($element);
00037         return $html;
00038     }


Member Data Documentation

$_addRowButtonHtml = array() [protected]

Definition at line 30 of file Countries.php.

$_removeRowButtonHtml = array() [protected]

Definition at line 31 of file Countries.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:16 2009 for Magento by  doxygen 1.5.8