Skip to content

Commit

Permalink
Dev Fixed duplicate table IDs, incorrectly spelled variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Dec 13, 2012
1 parent be77e65 commit beef60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ function email($iSurveyId, $tokenids = null)
{
if (LimeExpressionManager::singleton()->ProcessRelevance($aAttachment['relevance']))
{
$aReleventAttachments[] = $aAttachment['url'];
$aRelevantAttachments[] = $aAttachment['url'];
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class="fillin"
<div style="float: left; width: 60%;">
<button class="add-attachment" id="add-attachment-<?php echo "{$grouplang}-{$tab}"; ?>">Add file</button>

<table data-template="[<?php echo $grouplang; ?>][<?php echo $tab ?>]" id ="attachments-<?php echo $tab ?>" class="attachments" style="width: 500px">
<table data-template="[<?php echo $grouplang; ?>][<?php echo $tab ?>]" id ="attachments-<?php echo $grouplang; ?>-<?php echo $tab ?>" class="attachments" style="width: 500px">
<tr>
<th>Action</th>
<th>Filename</th>
Expand All @@ -47,7 +47,7 @@ class="fillin"
foreach ($esrow->attachments[$tab] as $attachment)
{

$script[] = sprintf("addAttachment($('#attachments-%s'), %s, %s, %s );", $tab, json_encode($attachment['url']), json_encode($attachment['relevance']), json_encode($attachment['size']));
$script[] = sprintf("addAttachment($('#attachments-%s-%s'), %s, %s, %s );", $grouplang, $tab, json_encode($attachment['url']), json_encode($attachment['relevance']), json_encode($attachment['size']));
}
echo '<script type="text/javascript">';
echo '$(document).ready(function() {';
Expand Down

0 comments on commit beef60b

Please sign in to comment.