',
$resultTable = $(tableTemplate).appendTo(this.$resultsContainer);
this.$resultsContainer.scroller = new Common.UI.Scroller({
@@ -488,7 +488,8 @@ define([
textContentChanged: 'Document changed.',
textSearchAgain: '{0}Perform new search{1} for accurate results.',
textItemsSuccessfullyReplaced: '{0} items successfully replaced.',
- textPartOfItemsNotReplaced: '{0}/{1} items replaced. Remaining {2} items are locked by other users.'
+ textPartOfItemsNotReplaced: '{0}/{1} items replaced. Remaining {2} items are locked by other users.',
+ textSearchResultsTable: 'Search results'
}, Common.Views.SearchPanel || {}));
});
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/main/app/controller/Search.js b/apps/spreadsheeteditor/main/app/controller/Search.js
index 74cd4079e9..b365de0b0e 100644
--- a/apps/spreadsheeteditor/main/app/controller/Search.js
+++ b/apps/spreadsheeteditor/main/app/controller/Search.js
@@ -454,12 +454,12 @@ define([
me.resultItems = [];
data.forEach(function (item, ind) {
var isSelected = ind === me._state.currentResult;
- var tr = '
' +
- '
' + (item[1] ? Common.Utils.String.htmlEncode(item[1]) : '') + '
' +
- '
' + (item[2] ? Common.Utils.String.htmlEncode(item[2]) : '') + '
' +
- '
' + (item[3] ? Common.Utils.String.htmlEncode(item[3]) : '') + '
' +
- '
' + (item[4] ? Common.Utils.String.htmlEncode(item[4]) : '') + '
' +
- '
' + (item[5] ? Common.Utils.String.htmlEncode(item[5]) : '') + '
' +
+ var tr = '
' +
+ '
' + (item[1] ? Common.Utils.String.htmlEncode(item[1]) : '') + '
' +
+ '
' + (item[2] ? Common.Utils.String.htmlEncode(item[2]) : '') + '
' +
+ '
' + (item[3] ? Common.Utils.String.htmlEncode(item[3]) : '') + '
' +
+ '
' + (item[4] ? Common.Utils.String.htmlEncode(item[4]) : '') + '
' +
+ '
' + (item[5] ? Common.Utils.String.htmlEncode(item[5]) : '') + '
' +
'
';
var $item = $(tr).appendTo($innerResults);
if (isSelected) {
diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json
index 7ff4b3e448..13b6a8ac3e 100644
--- a/apps/spreadsheeteditor/main/locale/en.json
+++ b/apps/spreadsheeteditor/main/locale/en.json
@@ -664,6 +664,7 @@
"Common.Views.SearchPanel.textWorkbook": "Workbook",
"Common.Views.SearchPanel.tipNextResult": "Next result",
"Common.Views.SearchPanel.tipPreviousResult": "Previous result",
+ "Common.Views.SearchPanel.textSearchResultsTable": "Search results",
"Common.Views.SelectFileDlg.textLoading": "Loading",
"Common.Views.SelectFileDlg.textTitle": "Select data source",
"Common.Views.SignDialog.textBold": "Bold",