Eyemagine_Cloudsponge - Version 2.0.4.3

Version Notes

Public Release

Meet your customers' friends in 5 minutes

Download this release

Release Info

Developer Magento Core Team
Extension Eyemagine_Cloudsponge
Version 2.0.4.3
Comparing to
See all releases


Code changes from version 2.0.4.2 to 2.0.4.3

package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eyemagine_Cloudsponge</name>
4
- <version>2.0.4.2</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>
@@ -17,8 +17,8 @@ Install CloudSponge today to enhance your Magento store's viral-ness.</descripti
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>2012-02-02</date>
20
- <time>00:28:25</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"><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="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"><dir name="images"><file name="cloudsponge.png" hash="47c4cbdad77f340482d802fd9d8680f9"/></dir><file name="cloudsponge.css" hash="79c180061bb939ddc9854123ba873d4e"/></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.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>
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>2012-02-02</date>
20
+ <time>23:23:41</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"><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="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="d58e8118c66a53a11f3f2c8aba7ea22c"/></dir></dir></dir></dir><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></target><target name="mageetc"><dir name="modules"><file name="Eyemagine_Cloudsponge.xml" hash="fee7b0c26af41a8a72de828302686f43"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>
skin/frontend/base/default/js/cloudsponge.js CHANGED
@@ -91,8 +91,8 @@ function confirmRecipients() {
91
  return;
92
  }
93
 
 
94
  ul = $('recipients_options');
95
- i = ul.childElements().length;
96
 
97
  // add the first email in the recipients list to the contactsInForm array
98
  if ($('recipients_email').value.length) {
@@ -100,12 +100,12 @@ function confirmRecipients() {
100
  }
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++) {
110
 
111
  // do nothing if the recipients reach maximum
@@ -146,9 +146,21 @@ function confirmRecipients() {
146
  var li_mail = Element.extend(document.createElement("LI"));
147
 
148
  li_mail.addClassName('fields additional-row');
149
- li_mail.innerHTML = '<p><a href="delete_email" title="Remove Email" onclick="remove_recipient('+i+'); return false" class="btn-remove">Remove Email<\/a><\/p>';
150
- li_mail.innerHTML += '<div class="field"><label for="recipients_name'+i+'" class="required"><em>*<\/em>Name:<\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" value="' + contacts[i]['name'] + '" /><\/div>';
151
- li_mail.innerHTML += '<div class="field"><label for="recipients_email'+i+'" class="required"><em>*<\/em>Email Address:<\/label><div class="input-box"><input name="recipients[email][]" value="' + contacts[i]['email'] + '" title="Email Address" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
 
 
 
 
 
 
 
 
 
 
 
 
152
  recipCount++;
153
 
154
  if (recipCount >= maxRecip && maxRecip != 0) {
91
  return;
92
  }
93
 
94
+ // get exist recipients list ul element
95
  ul = $('recipients_options');
 
96
 
97
  // add the first email in the recipients list to the contactsInForm array
98
  if ($('recipients_email').value.length) {
100
  }
101
 
102
  // add the rest of the emails in the recipients list to the contactsInForm array
103
+ for (var k = 0; k < maxRecip; 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++) {
110
 
111
  // do nothing if the recipients reach maximum
146
  var li_mail = Element.extend(document.createElement("LI"));
147
 
148
  li_mail.addClassName('fields additional-row');
149
+
150
+ // get row id which is empty (in between 0 to maxRecip-1)
151
+ var rowId = 0;
152
+ for (var j = 0; j < maxRecip; j++) {
153
+ if ($('recipients_email'+j)) {
154
+ continue;
155
+ }
156
+ else{
157
+ rowId = j;
158
+ break;
159
+ }
160
+ }
161
+ li_mail.innerHTML = '<p><a href="delete_email" title="Remove Email" onclick="remove_recipient('+rowId+'); return false" class="btn-remove">Remove Email<\/a><\/p>';
162
+ li_mail.innerHTML += '<div class="field"><label for="recipients_name'+rowId+'" class="required"><em>*<\/em>Name:<\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+rowId+'" value="' + contacts[i]['name'] + '" /><\/div>';
163
+ li_mail.innerHTML += '<div class="field"><label for="recipients_email'+rowId+'" class="required"><em>*<\/em>Email Address:<\/label><div class="input-box"><input name="recipients[email][]" value="' + contacts[i]['email'] + '" title="Email Address" id="recipients_email'+rowId+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
164
  recipCount++;
165
 
166
  if (recipCount >= maxRecip && maxRecip != 0) {