Skip to content

Commit

Permalink
Dev: Add refresh button in Cint order list
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 12, 2016
1 parent 40eac14 commit 68a331a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/core/plugins/CintLink/js/cintlink.js
Expand Up @@ -280,6 +280,7 @@ $(document).ready(function() {
LS.plugin.cintlink.cancelOrder = cancelOrder;
LS.plugin.cintlink.softDeleteOrder = softDeleteOrder;
LS.plugin.cintlink.userTriedToPay = userTriedToPay;
LS.plugin.cintlink.showDashboard = showDashboard;

// Check if user is logged in on limesurvey.org
// If yes, show widget
Expand Down
5 changes: 4 additions & 1 deletion application/core/plugins/CintLink/views/dashboard.php
Expand Up @@ -24,6 +24,7 @@

<!-- Cint widget button (not visible from global dashboard) -->
<?php if (!empty($surveyId)): // Widget is not visible on global dashboard ?>
<div class='row'>
<button
class='btn btn-default'
onclick='LS.plugin.cintlink.showWidget();'
Expand All @@ -33,7 +34,9 @@ class='btn btn-default'
&nbsp;
<?php echo $plugin->gT('Choose participants'); ?>
</button>
<p class='help-block'><?php echo $plugin->gT('Use the Cint widget to buy participants'); ?></p>
<button class='btn btn-default pull-right' onclick='LS.plugin.cintlink.showDashboard();'><span class='fa fa-refresh'></span>&nbsp;<?php echo $plugin->gT('Refresh'); ?></button>
</div>
<p class='help-block'><?php echo $plugin->gT('Use the Cint widget to buy participants'); ?></p>
<?php endif; ?>

<h4>Orders</h4>
Expand Down

0 comments on commit 68a331a

Please sign in to comment.