Browse Source

Fix for issue 3587

Fix for when you only change the locale and do not change the header, the placeholder text in the search box would not refresh.

https://github.com/wenzhixin/bootstrap-table/issues/3587
Greg Lowe 8 years ago
parent
commit
c22229575b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js

+ 3 - 2
src/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js

@@ -16,7 +16,6 @@
         }
       });
     });
-
     this.initHeader();
     this.initBody();
     this.initToolbar();
@@ -26,9 +25,11 @@
     this.options.locale = localeId;
     this.initLocale();
     this.initPagination();
+    this.initBody();
+    this.initToolbar();
   };
 
   $.fn.bootstrapTable.methods.push('changeTitle');
   $.fn.bootstrapTable.methods.push('changeLocale');
 
-}(jQuery);
+}(jQuery);