corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 /**
2 * @author: Jewway
3 * @version: v1.0.0
4 */
5  
6 !function ($) {
7 'use strict';
8  
9 var BootstrapTable = $.fn.bootstrapTable.Constructor;
10  
11 BootstrapTable.prototype.changeTitle = function (locale) {
12 $.each(this.options.columns, function (idx, columnList) {
13 $.each(columnList, function (idx, column) {
14 if (column.field) {
15 column.title = locale[column.field];
16 }
17 });
18 });
19  
20 this.initHeader();
21 this.initBody();
22 this.initToolbar();
23 };
24  
25 BootstrapTable.prototype.changeLocale = function (localeId) {
26 this.options.locale = localeId;
27 this.initLocale();
28 this.initPagination();
29 };
30  
31 $.fn.bootstrapTable.methods.push('changeTitle');
32 $.fn.bootstrapTable.methods.push('changeLocale');
33  
34 }(jQuery);