Change to onclick attribute of doNotSave button on ###TEMPLATE_DELETE_PREVIEW###
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 15 Dec 2015 01:17:29 +0000 (01:17 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 15 Dec 2015 01:17:29 +0000 (01:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_email_subscribe/trunk@90356 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Resources/Private/Templates/SubscribeHtmlTemplate.html

index 8751199..a4cc255 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-12-15 Stanislas Rolland  <typo3(arobas)sjbr.ca>
+       * Change to onclick attribute of doNotSave button on ###TEMPLATE_DELETE_PREVIEW###
+
 2015-12-14 Stanislas Rolland  <typo3(arobas)sjbr.ca>
        * Update to composer.json
        
index 6a5b1e7..9391b09 100644 (file)
@@ -1552,7 +1552,7 @@ The user is informed that a message has been sent to the email address and that
 <form id="###FORM_NAME###" method="post" action="###FORM_URL###">
        <p>
                ###HIDDENFIELDS###
-               <input type="submit" class="tx-sremailsubscribe-pi1-submit" name="tx_sremailsubscribe_pi1[doNotSave]" onclick="document.location='###BACK_URL###'; return false;" value="###LABEL_BUTTON_CANCEL_DELETE###" />
+               <input type="submit" class="tx-sremailsubscribe-pi1-submit" name="tx_sremailsubscribe_pi1[doNotSave]" onclick="this.form['tx_sremailsubscribe_pi1[cmd]'].value='edit'; return true;" value="###LABEL_BUTTON_CANCEL_DELETE###" />
                <input type="submit" class="tx-sremailsubscribe-pi1-submit" name="tx_sremailsubscribe_pi1[submit]" value="###LABEL_BUTTON_CONFIRM_DELETE###" />
        </p>
 </form>