Skip to content

Commit

Permalink
Fixed issue #9138: Sending multiple invitations, reminders to the sam…
Browse files Browse the repository at this point in the history
…e token
  • Loading branch information
c-schmitz committed Jul 25, 2014
1 parent eaee705 commit e4dd6ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/views/admin/token/browse.php
Expand Up @@ -91,11 +91,11 @@
var sRefreshTitle ='<?php $clang->eT("Reload participant list",'js');?>';
var noSearchResultsTxt = '<?php $clang->eT("No survey participants matching the search criteria",'js');?>';
var sFind= '<?php $clang->eT("Filter",'js');?>';
var remindurl = "<?php echo Yii::app()->getController()->createUrl("admin/tokens/sa/email/action/remind/surveyid/{$surveyid}/tokenids/|"); ?>";
var remindurl = "<?php echo Yii::app()->getController()->createUrl("admin/tokens/sa/email/action/remind/surveyid/{$surveyid}"); ?>";
var attMapUrl = "<?php echo $this->createUrl("admin/participants/sa/attributeMapToken/sid/");?>";
var invitemsg = "<?php echo $clang->eT("Send an invitation email to the selected entries (if they have not yet been sent an invitation email)"); ?>"
var remindmsg = "<?php echo $clang->eT("Send a reminder email to the selected entries (if they have already received the invitation email)"); ?>"
var inviteurl = "<?php echo Yii::app()->getController()->createUrl("admin/tokens/sa/email/action/invite/surveyid/{$surveyid}/tokenids/|"); ?>";
var inviteurl = "<?php echo Yii::app()->getController()->createUrl("admin/tokens/sa/email/action/invite/surveyid/{$surveyid}"); ?>";
var sSummary = '<?php $clang->eT("Summary",'js');?>';
var showDelButton = <?php echo $showDelButton; ?>;
var showBounceButton = <?php echo $showBounceButton; ?>;
Expand Down
20 changes: 18 additions & 2 deletions scripts/admin/tokens.js
Expand Up @@ -332,7 +332,15 @@ $(document).ready(function() {
}
else
{
window.open(inviteurl+$("#displaytokens").getGridParam("selarrrow").join("|"), "_blank")
$.post(inviteurl, {tokenids: $("#displaytokens").getGridParam("selarrrow").join("|")}, function (data) {
var win=window.open('about:blank');
with(win.document)
{
open();
write(data);
close();
}
});
}
}
});
Expand All @@ -349,7 +357,15 @@ $(document).ready(function() {
}
else
{
window.open(remindurl+$("#displaytokens").getGridParam("selarrrow").join("|"), "_blank")
$.post(remindurl, {tokenids: $("#displaytokens").getGridParam("selarrrow").join("|")}, function (data) {
var win=window.open('about:blank');
with(win.document)
{
open();
write(data);
close();
}
});
}
}
});
Expand Down

0 comments on commit e4dd6ff

Please sign in to comment.