Skip to content

Commit

Permalink
Fixed issue #10705: Missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 8, 2016
1 parent e7c538d commit e3fd0c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions application/views/admin/responses/listResponses_view.php
Expand Up @@ -7,6 +7,8 @@

<script type='text/javascript'>
var sCaption ='';
var sWarningMsg = "<?php eT("Warning", 'js') ?>";
var sSelectRowMsg = "<?php eT("Please select at least one response.", 'js') ?>";
var sSelectColumns ='<?php eT("Select columns",'js');?>';
var sRecordText = '<?php eT("View {0} - {1} of {2}",'js');?>';
var sPageText = '<?php eT("Page {0} of {1}",'js');?>';
Expand Down
13 changes: 10 additions & 3 deletions scripts/admin/listresponse.js
Expand Up @@ -41,6 +41,7 @@ $(document).on("click","[data-delete]",function(event){
$(function() {

/* Launch jqgrid */

jQuery("#displayresponses").jqGrid({
recordtext : sRecordText,
emptyrecords : sEmptyRecords,
Expand Down Expand Up @@ -89,12 +90,15 @@ $(function() {
return true;
}
});

/* Add navgrid */
jQuery("#displayresponses").jqGrid( 'navGrid', '#pager',
{
add: false,
edit: false,
del: true,
alertcap: sWarningMsg,
alerttext: sSelectRowMsg,
searchtitle : sSearchTitle,
refreshtitle : sRefreshTitle,
deltitle : sDelTitle,
Expand All @@ -119,7 +123,7 @@ $(function() {
$(document).scrollTop(selRowCoordinates.top);
},
},
{ // Deactivate actually, leave the option.
{ // Search options
caption : sSearchCaption,
Find : sFind,
multipleSearch: true,
Expand All @@ -128,9 +132,12 @@ $(function() {
sOperator7, sOperator8, sOperator9,
sOperator10, sOperator11, sOperator12,
sOperator13, sOperator14 ],
Reset : sReset
} // search options - define multiple search : TODO
Reset : sReset,
width: 700
}

);

/* quick search toolbar */
jQuery("#displayresponses").jqGrid('filterToolbar', {
searchOnEnter : false,
Expand Down

0 comments on commit e3fd0c6

Please sign in to comment.