Data8_DataCaptureValidation - Version 1.0.5

Version Notes

Fixed Firefox & Chrome compatibility.

Download this release

Release Info

Developer Data8
Extension Data8_DataCaptureValidation
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/design/frontend/default/default/template/data8/datacapturevalidation/data8_javascript.phtml CHANGED
@@ -18,19 +18,26 @@
18
 
19
  <script type="text/javascript">
20
 
21
- jQuery('#data8-postcodelookup-list').blur(function(e) {
22
- if (document.activeElement == null || document.activeElement.id != 'data8-postcodelookup-ok')
23
- jQuery('#data8-postcodelookup-dropdown').hide('fast');
 
 
 
 
 
24
  })
25
  .dblclick(function(e) {
26
  jQuery('#data8-postcodelookup-ok').click()
27
  });
28
 
29
- jQuery('#data8-postcodelookup-ok').click(function(e) {
30
  document.getElementById('data8-postcodelookup-list').applySelectedAddress();
31
  jQuery('#data8-postcodelookup-dropdown').hide('fast');
32
  });
 
33
 
 
34
  </script>
35
 
36
  <?php } ?>
18
 
19
  <script type="text/javascript">
20
 
21
+ function data8PostcodeLookupListOnBlur() {
22
+ if (document.activeElement == null || document.activeElement.id != 'data8-postcodelookup-ok')
23
+ jQuery('#data8-postcodelookup-dropdown').hide('fast');
24
+ }
25
+
26
+ function data8PostcodeLookupInit () {
27
+ jQuery('#data8-postcodelookup-list').blur(function(e) {
28
+ setTimeout('data8PostcodeLookupListOnBlur()', 100);
29
  })
30
  .dblclick(function(e) {
31
  jQuery('#data8-postcodelookup-ok').click()
32
  });
33
 
34
+ jQuery('#data8-postcodelookup-ok').click(function(e) {
35
  document.getElementById('data8-postcodelookup-list').applySelectedAddress();
36
  jQuery('#data8-postcodelookup-dropdown').hide('fast');
37
  });
38
+ }
39
 
40
+ data8PostcodeLookupInit();
41
  </script>
42
 
43
  <?php } ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Data8_DataCaptureValidation</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>* Adds postcode lookup functionality to all address entry screens, speeding up the checkout process and improving the deliverability of parcels. Covers all UK addresses and degrades gracefully when a different country is selected.&#xD;
11
  * Adds extensive telephone number validation for all UK and North American telephone numbers and degrades gracefully when a different country is selected.&#xD;
12
  * Adds extensive international email address validation.</description>
13
- <notes>Fixed dependencies.</notes>
14
  <authors><author><name>Data8</name><user>data8_technical</user><email>technical@data-8.co.uk</email></author></authors>
15
- <date>2012-07-03</date>
16
- <time>14:50:30</time>
17
- <contents><target name="magecommunity"><dir name="Data8"><dir name="DataCaptureValidation"><dir name="Block"><file name="Javascript.php" hash="16f9e4084dd2f20ca6588a39edcc1f0c"/></dir><file name="EmailValidationTypeList.php" hash="89910b62ec4efe9c4eada99b76d8b2cd"/><dir name="Helper"><file name="Data.php" hash="e8c6af1f98bf0f9640134b24dc642122"/></dir><file name="LicenseTypeList.php" hash="ddd66dd3149d083ecd69555bd4ba1a52"/><dir name="controllers"><file name="IndexController.php" hash="8d82912789ff1b1494aa56345ff5d7d9"/></dir><dir name="etc"><file name="config.xml" hash="37b7ffa4921af00ee82a44c54d129e36"/><file name="system.xml" hash="c1a609fa83e13d2c1ccab80d3890f6a9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Data8_DataCaptureValidation.xml" hash="506c38f100fa1cf2b8eda1f72b694810"/></dir><dir name="template"><dir name="data8"><dir name="datacapturevalidation"><file name="data8_javascript.phtml" hash="9a426048ed6a23f93e36bf4a66e1ab4b"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="Data8"><file name="address.js" hash="f03ee3c3bf1bebabfb0518b8f0bd46b9"/><file name="jquery-1.7.1.min.js" hash="2c57990a020cc3a35c4a603413d67a28"/><file name="magentoaddress.js" hash="f164aeeb0e9904fcbceb4ac3ce9d9ce7"/><file name="validation.js" hash="2f164db255c20476b4b29449b6be3147"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Data8_DataCaptureValidation.xml" hash="9c16925bf791b39a2e51dd40552b6429"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.7.0.0</max></package></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Data8_DataCaptureValidation</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>* Adds postcode lookup functionality to all address entry screens, speeding up the checkout process and improving the deliverability of parcels. Covers all UK addresses and degrades gracefully when a different country is selected.&#xD;
11
  * Adds extensive telephone number validation for all UK and North American telephone numbers and degrades gracefully when a different country is selected.&#xD;
12
  * Adds extensive international email address validation.</description>
13
+ <notes>Fixed Firefox &amp; Chrome compatibility.</notes>
14
  <authors><author><name>Data8</name><user>data8_technical</user><email>technical@data-8.co.uk</email></author></authors>
15
+ <date>2012-07-12</date>
16
+ <time>14:56:37</time>
17
+ <contents><target name="magecommunity"><dir name="Data8"><dir name="DataCaptureValidation"><dir name="Block"><file name="Javascript.php" hash="16f9e4084dd2f20ca6588a39edcc1f0c"/></dir><file name="EmailValidationTypeList.php" hash="89910b62ec4efe9c4eada99b76d8b2cd"/><dir name="Helper"><file name="Data.php" hash="e8c6af1f98bf0f9640134b24dc642122"/></dir><file name="LicenseTypeList.php" hash="ddd66dd3149d083ecd69555bd4ba1a52"/><dir name="controllers"><file name="IndexController.php" hash="8d82912789ff1b1494aa56345ff5d7d9"/></dir><dir name="etc"><file name="config.xml" hash="37b7ffa4921af00ee82a44c54d129e36"/><file name="system.xml" hash="c1a609fa83e13d2c1ccab80d3890f6a9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Data8_DataCaptureValidation.xml" hash="506c38f100fa1cf2b8eda1f72b694810"/></dir><dir name="template"><dir name="data8"><dir name="datacapturevalidation"><file name="data8_javascript.phtml" hash="bbdbfeba1886147029de27eb90e98123"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="Data8"><file name="address.js" hash="f03ee3c3bf1bebabfb0518b8f0bd46b9"/><file name="jquery-1.7.1.min.js" hash="2c57990a020cc3a35c4a603413d67a28"/><file name="magentoaddress.js" hash="f164aeeb0e9904fcbceb4ac3ce9d9ce7"/><file name="validation.js" hash="2f164db255c20476b4b29449b6be3147"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Data8_DataCaptureValidation.xml" hash="9c16925bf791b39a2e51dd40552b6429"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.7.0.0</max></package></required></dependencies>
20
  </package>