Eyemagine_Cloudsponge - Version 2.0.4

Version Notes

Public Release

Meet your customers' friends in 5 minutes

Download this release

Release Info

Developer EYEMAGINE
Extension Eyemagine_Cloudsponge
Version 2.0.4
Comparing to
See all releases


Code changes from version 2.0.3 to 2.0.4

app/code/local/Eyemagine/Cloudsponge/etc/config.xml CHANGED
@@ -13,7 +13,7 @@
13
  <config>
14
  <modules>
15
  <Eyemagine_Cloudsponge>
16
- <version>0.1.0</version>
17
  </Eyemagine_Cloudsponge>
18
  </modules>
19
  <frontend>
@@ -89,4 +89,4 @@
89
  </cloudsponge>
90
  </helpers>
91
  </global>
92
- </config>
13
  <config>
14
  <modules>
15
  <Eyemagine_Cloudsponge>
16
+ <version>2.0.4</version>
17
  </Eyemagine_Cloudsponge>
18
  </modules>
19
  <frontend>
89
  </cloudsponge>
90
  </helpers>
91
  </global>
92
+ </config>
app/design/frontend/base/default/template/cloudsponge/popup.phtml CHANGED
@@ -29,12 +29,10 @@ if (!empty($appletTag)) {
29
  <?php if (isset($consentUrl)): ?>
30
  this.location = '<?php echo $consentUrl ?>';
31
  <?php endif; ?>
32
-
33
- //setInterval('getErrorMessage()', 1000);
34
  //]]>
35
  </script>
36
 
37
  <div id="cloudsponge_message">
38
  <p><?php echo $this->__('Contacts are being imported. Please do not close this popup window.') ?></p>
39
  </div>
40
-
29
  <?php if (isset($consentUrl)): ?>
30
  this.location = '<?php echo $consentUrl ?>';
31
  <?php endif; ?>
 
 
32
  //]]>
33
  </script>
34
 
35
  <div id="cloudsponge_message">
36
  <p><?php echo $this->__('Contacts are being imported. Please do not close this popup window.') ?></p>
37
  </div>
38
+
app/design/frontend/base/default/template/cloudsponge/send.phtml CHANGED
@@ -190,9 +190,10 @@
190
  </li>
191
  </ul>
192
  </div>
 
193
  <?php endif; ?>
194
 
195
- <div class="fieldset">
196
  <h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
197
  <ul class="form-list" id="recipients_options">
198
  <li class="fields">
190
  </li>
191
  </ul>
192
  </div>
193
+ <div style="clear:both"></div>
194
  <?php endif; ?>
195
 
196
+ <div class="fieldset" id="recipients">
197
  <h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
198
  <ul class="form-list" id="recipients_options">
199
  <li class="fields">
app/design/frontend/base/default/template/cloudsponge/send_bak.phtml DELETED
@@ -1,170 +0,0 @@
1
- <?php
2
- /**
3
- * EYEMAGINE
4
- *
5
- * @category design
6
- * @package base_default
7
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
8
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
9
- */
10
- /* @var $this Mage_Sendfriend_Block_Send */
11
- /**
12
- * Send to friend form
13
- *
14
- * @see Mage_Sendfriend_Block_Send
15
- */
16
-
17
- Mage::register('cloudsponge_product_id', $this->getRequest()->getParam('id'));
18
- echo Mage::registry('cloudsponge_import_id');
19
- ?>
20
- <script type="text/javascript">
21
- //<![CDATA[
22
- i=0;
23
- var recipCount = 1;
24
- var maxRecip = <?php echo $this->getMaxRecipients() ?>;
25
- function remove_recipient(i){
26
- $('recipients_name'+i).up(2).remove();
27
- recipCount--;
28
- if(recipCount<maxRecip && maxRecip != 0) {
29
- $('add_recipient_button').show();
30
- $('max_recipient_message').hide();
31
- }
32
- return false;
33
- }
34
-
35
- function add_recipient(){
36
- ul = $('recipients_options');
37
- var li_mail = Element.extend(document.createElement("LI"));
38
- li_mail.addClassName('fields additional-row');
39
- li_mail.innerHTML = '<p><a href="delete_email" title="<?php echo $this->__('Remove Email') ?>" onclick="remove_recipient('+i+'); return false" class="btn-remove"><?php echo $this->__('Remove Email') ?>"<\/a><\/p>'
40
- li_mail.innerHTML += '<div class="field"><label for="recipients_name'+i+'" class="required"><em>*<\/em><?php echo $this->__('Name:') ?><\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" /><\/div>';
41
- li_mail.innerHTML += '<div class="field"><label for="recipients_email'+i+'" class="required"><em>*<\/em><?php echo $this->__('Email Address:') ?><\/label><div class="input-box"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
42
- i++;
43
- recipCount++;
44
- if(recipCount>=maxRecip && maxRecip != 0) {
45
- $('add_recipient_button').hide();
46
- $('max_recipient_message').show();
47
- }
48
-
49
- ul.appendChild(li_mail);
50
- }
51
- //]]>
52
- </script>
53
-
54
- <div class="send-friend">
55
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
56
- <div class="page-title">
57
- <h1><?php echo $this->__('Email to a Friend') ?></h1>
58
- </div>
59
- <form action="<?php echo $this->getSendUrl() ?>" method="post" id="product_sendtofriend_form">
60
- <div class="fieldset">
61
- <?php echo $this->getBlockHtml('formkey')?>
62
- <h2 class="legend"><?php echo $this->__('Sender:') ?></h2>
63
- <ul class="form-list" id="sender_options">
64
- <li class="fields">
65
- <div class="field">
66
- <label for="sender_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
67
- <div class="input-box">
68
- <input name="sender[name]" value="<?php echo $this->htmlEscape($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" />
69
- </div>
70
- </div>
71
- <div class="field">
72
- <label for="sender_email" class="required"><em>*</em><?php echo $this->__('Email:') ?></label>
73
- <div class="input-box">
74
- <input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" />
75
- </div>
76
- </div>
77
- </li>
78
- <li class="wide">
79
- <label for="sender_message" class="required"><em>*</em><?php echo $this->__('Message:') ?></label>
80
- <div class="input-box">
81
- <textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3"><?php echo $this->htmlEscape($this->getMessage())?></textarea>
82
- </div>
83
- </li>
84
- </ul>
85
- </div>
86
-
87
- <div class="fieldset">
88
- <h2 class="legend"><?php echo $this->__('Import:') ?></h2>
89
- <ul class="form-list" id="import_options">
90
- <li class="fields">
91
- <div class="wide">
92
- <ul class="import_sources">
93
- <li>
94
- <a href="#" onclick="importYahoo();return false;"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/yahoo.png')?>" alt="<?php echo $this->__('Yahoo!'); ?>" /></a>
95
- <a href="#" onclick="importYahoo();return false;"><?php echo $this->__('Yahoo!'); ?></a>
96
- </li>
97
- <li>
98
- <a href="#" onclick="importMSN();return false;" id="cloudsponge_msn" class="cloudsponge_msn"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/msn.png')?>" alt="<?php echo $this->__('MSN'); ?>" /></a>
99
- <span>
100
- <a href="#" onclick="importMSN();return false;"><?php echo $this->__('Windows Live') ?></a>
101
- <a href="#" onclick="importMSN();return false;"><?php echo $this->__('Hotmail') ?></a>
102
- <a href="#" onclick="importMSN();return false;"><?php echo $this->__('MSN') ?></a>
103
- </span>
104
- </li>
105
- <li>
106
- <a href="#" onclick="importGmail();return false;" id="cloudsponge_gmail" class="cloudsponge_gmail"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/google.png')?>" alt="<?php echo $this->__('Gmail'); ?>" /></a>
107
- <span><a href="#"><?php echo $this->__('Gmail'); ?></a></span>
108
- </li>
109
- <li>
110
- <a href="#" onclick="importAOL();return false;" id="cloudsponge_aol" class="cloudsponge_aol"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/aol.png')?>" alt="<?php echo $this->__('AOL'); ?>" /></a>
111
- <span><a href="#"><?php echo $this->__('AOL'); ?></a></span>
112
- </li>
113
- <li>
114
- <a href="#" onclick="importPlaxo();return false;" id="cloudsponge_plaxo" class="cloudsponge_plaxo"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/plaxo.jpeg')?>" alt="<?php echo $this->__('Plaxo'); ?>" /></a>
115
- <span><a href="#"><?php echo $this->__('Plaxo'); ?></a></span>
116
- </li>
117
- <li>
118
- <a href="#" onclick="importApple();return false;" id="cloudsponge_apple" class="cloudsponge_apple"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/apple.png')?>" alt="<?php echo $this->__('Mac OS X Address Book'); ?>" /></a>
119
- <span><a href="#"><?php echo $this->__('Mac OS X Address Book'); ?></a></span>
120
- </li>
121
- </ul>
122
- </div>
123
- </li>
124
- </ul>
125
- </div>
126
- <div class="fieldset">
127
- <h2 class="legend"><?php echo $this->__('Recipient:') ?> <div id="import_loader" style="display: none"><img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>"></div></h2>
128
- <ul class="form-list" id="recipients_options">
129
- <li class="fields">
130
- <div class="field">
131
- <label for="recipients_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
132
- <div class="input-box">
133
- <input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" />
134
- </div>
135
- </div>
136
- <div class="field">
137
- <label for="recipients_email" class="required"><em>*</em><?php echo $this->__('Email Address:') ?></label>
138
- <div class="input-box">
139
- <input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" />
140
- </div>
141
- </div>
142
- </li>
143
- </ul>
144
- </div>
145
- <div class="buttons-set">
146
- <p class="back-link"><a href="#" onclick="history.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
147
- <button type="submit" class="button<?php if (!$this->canSend()):?> disabled<?php endif ?>"<?php if (!$this->canSend()):?> disabled="disabled"<?php endif ?>><span><span><?php echo $this->__('Send Email') ?></span></span></button>
148
- <div id="max_recipient_message" style="display:none;">
149
- <?php if ($this->getMaxRecipients()): ?>
150
- <p class="limit"><?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?></p>
151
- <?php endif; ?>
152
- </div>
153
- <?php if (1 < $this->getMaxRecipients()): ?>
154
- <p id="add_recipient_button">
155
- <button type="button" onclick="add_recipient();" class="button"><span><span><?php echo $this->__('Add Recipient') ?></span></span></button>
156
- </p>
157
- <?php endif; ?>
158
- </div>
159
- </form>
160
- <script type="text/javascript">
161
- //<![CDATA[
162
- var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
163
- productSendtofriendForm.submit = function() {
164
- if(this.validator.validate()) {
165
- this.form.submit();
166
- }
167
- }.bind(productSendtofriendForm);
168
- //]]>
169
- </script>
170
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,24 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eyemagine_Cloudsponge</name>
4
- <version>2.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Meet everyone your users know in 5 minutes. The CloudSponge integration module will enable your users to import their contacts from the most popular services online.</summary>
10
- <description>Meet everyone your users know in 5 minutes. The CloudSponge integration module will enable your users to import their contacts from the most popular services online: Yahoo!, MSN, Hotmail, Live, Google, AOL, Plaxo, and Apple Address Book.
11
-
12
- With CloudSponge, your users can share your products with friends, coworkers, and family members quickly and efficiently. Manually typing address book contents into a web form is definitely a thing of the past now that CloudSponge allows quick and easy address book import. The true beauty of this integration is that CloudSponge let's your customers import from multiple address book sources, online and locally.
13
-
14
  Install CloudSponge today to enhance your Magento store's viral-ness.</description>
15
- <notes>Public Release
16
-
17
  Meet your customers' friends in 5 minutes</notes>
18
- <authors><author><name>EYEMAGINE</name><user>auto-converted</user><email>magento@eyemaginetech.com</email></author></authors>
19
- <date>2011-12-31</date>
20
- <time>13:11:54</time>
21
- <contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cloudsponge.png" hash="47c4cbdad77f340482d802fd9d8680f9"/></dir><file name="cloudsponge.css" hash="79c180061bb939ddc9854123ba873d4e"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="cloudsponge.css" hash="46f8cfea2e8035801d86ed4391044d29"/></dir><dir name="images"><dir name="cloudsponge"><file name="aol.png" hash="0e3e34ebf79279737c0276b48ec76d99"/><file name="apple.png" hash="8927def4c9e62088f4cc8e2c6f08d50e"/><file name="bkg_block-title.gif" hash="f8c1f130ad69464fe7aff2f589b2ec75"/><file name="google.png" hash="4eca22513f0aaede4925c2dfe34f7d6c"/><file name="i_address.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="msn.png" hash="8f117246b27d3f739f8645849690a1ab"/><file name="plaxo.jpeg" hash="58ce87edfba74e1b598f11c2352496f2"/><file name="searchfield.png" hash="4f5a8499fcaa78aa570b910a8e5367d3"/><file name="yahoo.png" hash="90a3dad399cf3d8366cef56fd9f1d34b"/></dir></dir><dir name="js"><file name="cloudsponge.js" hash="7837703717207067bf7d3bea3e556f37"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cloudsponge.xml" hash="9e0bfec0e2aa8d072c77b5894ec45d28"/></dir><dir name="template"><dir name="cloudsponge"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="ba2d7df0bd457d9771a6dcefe00bb2e0"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cloudsponge.xml" hash="f00b79541b484c7e9bb1a047097f717e"/></dir><dir name="template"><dir name="cloudsponge"><file name="cloudsponge.phtml" hash="05d2ebffe5089ff2f87b23bbdd50def5"/><file name="popup.phtml" hash="1d196915281211a300909c4425d5ea5b"/><file name="send.phtml" hash="c33e873209dca97ed60dfea7fbffc24d"/><file name="send_bak.phtml" hash="bbeff9df64f88f91accf0059508aced1"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="cloudsponge"><file name="auth.php" hash="428d4fa3f306eb1cbdcc98a8ec37d821"/><file name="csconstants.php" hash="44f729993893169222a097941d2c72b1"/><file name="csimport.php" hash="b070554d98792a863bd9fbbe11de2bac"/><file name="cstest.php" hash="87e3e22cf4fe34c152091f9c0f79381d"/><file name="popup.php" hash="60cf3647dc75381f804607902012eb66"/><file name="prototype.js" hash="b5684120e496c310977713be34be4868"/><file name="README.txt" hash="f04b70aa6ffac767d606d5632cb39214"/><file name="step_1_start.php" hash="b3a33d4e6b4df7f2fb7aeaaa8b70c86f"/><file name="step_2_events.php" hash="799210ebdc745b22ff25c03640b60ec9"/><file name="step_3_contacts.php" hash="8fe40b6b6799cd755ad34897e4c9c219"/></dir></target><target name="magelocal"><dir name="Eyemagine"><dir name="Cloudsponge"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="d919bb912a412c0e9e8435ea5719acdb"/></dir></dir></dir></dir><file name="Popup.php" hash="ca4b3c768280ef356ec285d550c00ba2"/><file name="Send.php" hash="1876ae4564e6cea636479a216f7b7568"/></dir><dir name="controllers"><file name="IndexController.php" hash="c5234de849af538a70c7a505c5a30444"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fd1283ac35a5a0fdac6b4ba830e7edcd"/><file name="config.xml" hash="66d52779e37668e2bfc0e6fae7e1ae41"/><file name="system.xml" hash="89230125d971f5354395f634edee6e2a"/></dir><dir name="Helper"><file name="Data.php" hash="6cd1d402555574d1ff4df1bdb135502d"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Cloudsponge"><file name="Collection.php" hash="22a6d663b55551f5e70bae506f42acdb"/></dir><file name="Cloudsponge.php" hash="149ce4adc8eb58af0ef165b7239b74d1"/></dir><file name="Cloudsponge.php" hash="340a80d69ff8b5f44cc0b2ceefdae6c1"/></dir><dir name="sql"><dir name="cloudsponge_setup"><file name="mysql4-install-0.1.0.php" hash="6ec1384d43f2f0bbbc2c17bd982d8e68"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eyemagine_Cloudsponge.xml" hash="fee7b0c26af41a8a72de828302686f43"/></dir></target></contents>
22
  <compatible/>
23
- <dependencies/>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eyemagine_Cloudsponge</name>
4
+ <version>2.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Meet everyone your users know in 5 minutes. The CloudSponge integration module will enable your users to import their contacts from the most popular services online.</summary>
10
+ <description>Meet everyone your users know in 5 minutes. The CloudSponge integration module will enable your users to import their contacts from the most popular services online: Yahoo!, MSN, Hotmail, Live, Google, AOL, Plaxo, and Apple Address Book.&#xD;
11
+ &#xD;
12
+ With CloudSponge, your users can share your products with friends, coworkers, and family members quickly and efficiently. Manually typing address book contents into a web form is definitely a thing of the past now that CloudSponge allows quick and easy address book import. The true beauty of this integration is that CloudSponge let's your customers import from multiple address book sources, online and locally.&#xD;
13
+ &#xD;
14
  Install CloudSponge today to enhance your Magento store's viral-ness.</description>
15
+ <notes>Public Release&#xD;
16
+ &#xD;
17
  Meet your customers' friends in 5 minutes</notes>
18
+ <authors><author><name>EYEMAGINE</name><user>eyemagine</user><email>magento@eyemaginetech.com</email></author></authors>
19
+ <date>2012-01-31</date>
20
+ <time>23:27:40</time>
21
+ <contents><target name="magelocal"><dir name="Eyemagine"><dir name="Cloudsponge"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="d919bb912a412c0e9e8435ea5719acdb"/></dir></dir></dir></dir><file name="Popup.php" hash="ca4b3c768280ef356ec285d550c00ba2"/><file name="Send.php" hash="1876ae4564e6cea636479a216f7b7568"/></dir><dir name="Helper"><file name="Data.php" hash="6cd1d402555574d1ff4df1bdb135502d"/></dir><dir name="Model"><file name="Cloudsponge.php" hash="340a80d69ff8b5f44cc0b2ceefdae6c1"/><dir name="Mysql4"><dir name="Cloudsponge"><file name="Collection.php" hash="22a6d663b55551f5e70bae506f42acdb"/></dir><file name="Cloudsponge.php" hash="149ce4adc8eb58af0ef165b7239b74d1"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="c5234de849af538a70c7a505c5a30444"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fd1283ac35a5a0fdac6b4ba830e7edcd"/><file name="config.xml" hash="5eaa252a611507fb45e04ffd415d4f57"/><file name="system.xml" hash="89230125d971f5354395f634edee6e2a"/></dir><dir name="sql"><dir name="cloudsponge_setup"><file name="mysql4-install-0.1.0.php" hash="6ec1384d43f2f0bbbc2c17bd982d8e68"/></dir></dir></dir></dir></target><target name="magelib"><dir name="cloudsponge"><file name="README.txt" hash="f04b70aa6ffac767d606d5632cb39214"/><file name="auth.php" hash="428d4fa3f306eb1cbdcc98a8ec37d821"/><file name="csconstants.php" hash="44f729993893169222a097941d2c72b1"/><file name="csimport.php" hash="b070554d98792a863bd9fbbe11de2bac"/><file name="cstest.php" hash="87e3e22cf4fe34c152091f9c0f79381d"/><file name="popup.php" hash="60cf3647dc75381f804607902012eb66"/><file name="prototype.js" hash="b5684120e496c310977713be34be4868"/><file name="step_1_start.php" hash="b3a33d4e6b4df7f2fb7aeaaa8b70c86f"/><file name="step_2_events.php" hash="799210ebdc745b22ff25c03640b60ec9"/><file name="step_3_contacts.php" hash="8fe40b6b6799cd755ad34897e4c9c219"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cloudsponge.xml" hash="f00b79541b484c7e9bb1a047097f717e"/></dir><dir name="template"><dir name="cloudsponge"><file name="cloudsponge.phtml" hash="05d2ebffe5089ff2f87b23bbdd50def5"/><file name="popup.phtml" hash="20ac841ec02a9dc0ec4d244ed0278b52"/><file name="send.phtml" hash="883fc4969aeb4d7a54785df643befb14"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="cloudsponge"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="ba2d7df0bd457d9771a6dcefe00bb2e0"/></dir></dir></dir></dir></dir><dir name="layout"><file name="cloudsponge.xml" hash="9e0bfec0e2aa8d072c77b5894ec45d28"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="cloudsponge.css" hash="46f8cfea2e8035801d86ed4391044d29"/></dir><dir name="images"><dir name="cloudsponge"><file name="aol.png" hash="0e3e34ebf79279737c0276b48ec76d99"/><file name="apple.png" hash="8927def4c9e62088f4cc8e2c6f08d50e"/><file name="bkg_block-title.gif" hash="f8c1f130ad69464fe7aff2f589b2ec75"/><file name="google.png" hash="4eca22513f0aaede4925c2dfe34f7d6c"/><file name="i_address.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="msn.png" hash="8f117246b27d3f739f8645849690a1ab"/><file name="plaxo.jpeg" hash="58ce87edfba74e1b598f11c2352496f2"/><file name="searchfield.png" hash="4f5a8499fcaa78aa570b910a8e5367d3"/><file name="yahoo.png" hash="90a3dad399cf3d8366cef56fd9f1d34b"/></dir></dir><dir name="js"><file name="cloudsponge.js" hash="6ab30d73db7f3c5b1c519359ce0b4f73"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><file name="cloudsponge.css" hash="79c180061bb939ddc9854123ba873d4e"/><dir name="images"><file name="cloudsponge.png" hash="47c4cbdad77f340482d802fd9d8680f9"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eyemagine_Cloudsponge.xml" hash="fee7b0c26af41a8a72de828302686f43"/></dir></target></contents>
22
  <compatible/>
23
+ <dependencies><required><php><min>5.2.0</min><max>5.4.0</max></php></required></dependencies>
24
  </package>
skin/frontend/base/default/js/cloudsponge.js CHANGED
@@ -41,7 +41,6 @@ function decreaseEmailCounter() {
41
  function updateEmailCount() {
42
  countDiv = $('counter_content');
43
  countDiv.innerHTML = counter + " email addresses left";
44
- // $('cloudsponge_emailcounter').invoke('show');
45
  }
46
 
47
  function disableConfirm(){
@@ -88,7 +87,7 @@ function confirmRecipients() {
88
 
89
  // if no email selected, do nothing
90
  if (selectedEmails == 0) {
91
- // alert("No email selected, Please check at least one email Recipient");
92
  return;
93
  }
94
 
@@ -102,7 +101,9 @@ function confirmRecipients() {
102
 
103
  // add the rest of the emails in the recipients list to the contactsInForm array
104
  for (var k = 1; k < i; k++) {
105
- contactsInForm.push($('recipients_email'+k).value);
 
 
106
  }
107
 
108
  for (var i = 0; i < contacts.length; i++) {
@@ -162,6 +163,8 @@ function confirmRecipients() {
162
 
163
  // do not hide once confirm the email list
164
  ///hideAddressRecords();
 
 
165
  }
166
 
167
  function filterAddressRecords (evt) {
@@ -189,6 +192,13 @@ function filterAddressRecords (evt) {
189
  Event.stop(evt);
190
  };
191
 
 
 
 
 
 
 
 
192
  function importAOL (evt) {
193
  var popUpUrl = baseUrl + '/cloudsponge/index/popup/service/aol';
194
  this.popUp = window.open(popUpUrl, 'import', 'width=987,height=600,resizable=yes,scrollbars=yes');
@@ -360,7 +370,9 @@ function startImport() {
360
  clearTimeout(stopImportTimeCount);
361
  }
362
 
363
- if ($('cloudsponge_message')) $('cloudsponge_message').setStyle('display:none');
 
 
364
  getJSONData();
365
  getErrorMessage();
366
  // set timeout handler
@@ -368,18 +380,21 @@ function startImport() {
368
  }
369
 
370
  function stopImport() {
 
371
  importContactsFlag = false;
372
- // stop the timer,
 
373
  if (undefined != stopImportTimeCount) {
374
  clearTimeout(stopImportTimeCount);
375
  }
 
376
  $('import_loader').hide();
377
 
378
  if ($('apple-iframe')) {
379
  $('apple-iframe').setStyle('display:none');
380
  }
381
 
382
- // check if the popup window is still exist; close popup window
383
  if (undefined != popupWinRef) {
384
  popupWinRef.close();
385
  }
@@ -574,6 +589,11 @@ Event.observe(window, 'load', function() {
574
  Event.observe(element, 'click', importApple);
575
  });
576
 
 
 
 
 
 
577
  $$('.userpassword_submit').each(function(element){
578
  Event.observe(element, 'click', importUserPassword);
579
  });
@@ -588,6 +608,9 @@ Event.observe(window, 'load', function() {
588
 
589
  Event.observe($("address_search"), 'keyup', filterAddressRecords);
590
 
 
 
 
591
  // hide the address confirmation form fields
592
  hideAddressRecords();
593
  });
41
  function updateEmailCount() {
42
  countDiv = $('counter_content');
43
  countDiv.innerHTML = counter + " email addresses left";
 
44
  }
45
 
46
  function disableConfirm(){
87
 
88
  // if no email selected, do nothing
89
  if (selectedEmails == 0) {
90
+ // alert("No email selected, Please check at least one email recipient");
91
  return;
92
  }
93
 
101
 
102
  // add the rest of the emails in the recipients list to the contactsInForm array
103
  for (var k = 1; k < i; k++) {
104
+ if ($('recipients_email'+k)) {
105
+ contactsInForm.push($('recipients_email'+k).value);
106
+ }
107
  }
108
 
109
  for (var i = 0; i < contacts.length; i++) {
163
 
164
  // do not hide once confirm the email list
165
  ///hideAddressRecords();
166
+
167
+ $('recipients').scrollTo();
168
  }
169
 
170
  function filterAddressRecords (evt) {
192
  Event.stop(evt);
193
  };
194
 
195
+ function ignoreEnterKey (evt) {
196
+ if(evt.keyCode == Event.KEY_RETURN) {
197
+ // stop processing the event, do nothing when pressing the enter key
198
+ Event.stop(evt);
199
+ }
200
+ }
201
+
202
  function importAOL (evt) {
203
  var popUpUrl = baseUrl + '/cloudsponge/index/popup/service/aol';
204
  this.popUp = window.open(popUpUrl, 'import', 'width=987,height=600,resizable=yes,scrollbars=yes');
370
  clearTimeout(stopImportTimeCount);
371
  }
372
 
373
+ if ($('cloudsponge_message')) {
374
+ $('cloudsponge_message').setStyle('display:none');
375
+ }
376
  getJSONData();
377
  getErrorMessage();
378
  // set timeout handler
380
  }
381
 
382
  function stopImport() {
383
+
384
  importContactsFlag = false;
385
+
386
+ // stop the timer
387
  if (undefined != stopImportTimeCount) {
388
  clearTimeout(stopImportTimeCount);
389
  }
390
+
391
  $('import_loader').hide();
392
 
393
  if ($('apple-iframe')) {
394
  $('apple-iframe').setStyle('display:none');
395
  }
396
 
397
+ // check if the popup window still exists; close popup window
398
  if (undefined != popupWinRef) {
399
  popupWinRef.close();
400
  }
589
  Event.observe(element, 'click', importApple);
590
  });
591
 
592
+ // hide the Apple importer link if the client OS is not OS/X
593
+ if (navigator.userAgent.indexOf(' Mac ') == -1) {
594
+ $('cloudsponge_apple').setStyle('display:none');
595
+ }
596
+
597
  $$('.userpassword_submit').each(function(element){
598
  Event.observe(element, 'click', importUserPassword);
599
  });
608
 
609
  Event.observe($("address_search"), 'keyup', filterAddressRecords);
610
 
611
+ Event.observe($("address_search"), 'keypress', ignoreEnterKey);
612
+ Event.observe($("recipients"), 'keypress', ignoreEnterKey);
613
+
614
  // hide the address confirmation form fields
615
  hideAddressRecords();
616
  });