Skip to content

Commit

Permalink
Fixed issue #7616: Missing translations in Share panel table
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 3, 2013
1 parent d6ad397 commit 3f6cd39
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
5 changes: 4 additions & 1 deletion application/views/admin/participants/sharePanel_view.php
Expand Up @@ -15,7 +15,10 @@

var sSearchMsg = "<?php $clang->eT("Search shared participants", 'js') ?>";
var sLoadText = '<?php $clang->eT("Loading...",'js');?>';
var deleteSharesTxt="<?php $clang->eT("Un-share selected participants", 'js') ?>";
var sDeleteMsg = "<?php $clang->eT("Are you sure you want to un-share the selected participants?") ?>";
var sDeleteShares="<?php $clang->eT("Un-share selected participants", 'js') ?>";
var sSelectRowMsg = "<?php $clang->eT("Please select at least one participant.", 'js') ?>";
var sWarningMsg = "<?php $clang->eT("Warning", 'js') ?>";
var refreshListTxt="<?php $clang->eT("Refresh list", 'js') ?>";
var pageViewTxt= "<?php $clang->eT("Page {0} of {1}", 'js') ?>";
var viewRecordTxt= '<?php $clang->eT("View {0} - {1} of {2}",'js');?>';
Expand Down
24 changes: 22 additions & 2 deletions scripts/admin/sharePanel.js
Expand Up @@ -85,12 +85,32 @@ $(document).ready(function() {
{add:false,
del:true,
edit:false,
deltitle: deleteSharesTxt,
alertcap: sWarningMsg,
alerttext: sSelectRowMsg,
deltitle: sDeleteShares,
searchtitle: sSearchMsg,
refreshtitle: refreshListTxt},
{closeAfterDel: true,
reloadAfterSubmit: true
},{},{},
},{},{
caption: sDeleteShares,
msg: sDeleteMsg,
width: 500,
afterShowForm: function($form) {
/* This code sets the position of the delete dialog to just below the last selected item */
/* Unless this would put the delete dialog off the page, in which case it will be pushed up a bit */
var dialog = $form.closest('div.ui-jqdialog'),
selRowId = jQuery("#sharePanel").jqGrid('getGridParam', 'selrow'),
selRowCoordinates = $('#'+selRowId).offset();
selRowCoordinates.top=selRowCoordinates.top+25;
selRowCoordinates.left=50;
if(selRowCoordinates.top+325 > jQuery(window).height()) {
selRowCoordinates.top=selRowCoordinates.top-325;
}
dialog.offset(selRowCoordinates);
}

},
{ Find: sFindButtonCaption,
Reset: sResetButtonCaption,
width:600,
Expand Down
2 changes: 1 addition & 1 deletion styles/gringegreen/jquery-ui/jquery-ui.css
Expand Up @@ -982,7 +982,7 @@
.ui-widget-overlay {
background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50%
repeat-x;
opacity: .30;
opacity: .30 !important;
filter: Alpha(Opacity = 30);
}

Expand Down

0 comments on commit 3f6cd39

Please sign in to comment.