Skip to content

Commit

Permalink
Merge pull request jspreadsheet#410 from newapx/patch-2
Browse files Browse the repository at this point in the history
Partial replacement for option text, text Search
  • Loading branch information
pphod authored Jul 2, 2019
2 parents 9b68682 + 4457009 commit 54f51a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/jexcel.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var jexcel = (function(el, options) {
noRecordsFound: 'No records found',
showingPage: 'Showing page {0} of {1} entries',
show: 'Show ',
search: 'Search',
entries: ' entries',
insertANewColumnBefore: 'Insert a new column before',
insertANewColumnAfter: 'Insert a new column after',
Expand Down Expand Up @@ -164,7 +165,7 @@ var jexcel = (function(el, options) {
// Loading initial configuration from user
for (var property in defaults) {
if (options && options.hasOwnProperty(property)) {
obj.options[property] = options[property];
obj.options[property] = (property == 'text') ? Object.assign(defaults[property], options[property]) : options[property];
} else {
obj.options[property] = defaults[property];
}
Expand Down Expand Up @@ -337,7 +338,7 @@ var jexcel = (function(el, options) {

// Search
var searchContainer = document.createElement('div');
var searchText = document.createTextNode('Search: ');
var searchText = document.createTextNode((obj.options.text.search) + ': ');
obj.searchInput = document.createElement('input');
obj.searchInput.classList.add('jexcel_search');
searchContainer.appendChild(searchText);
Expand Down

0 comments on commit 54f51a8

Please sign in to comment.