56 lines
2.2 KiB
JavaScript
Executable File
56 lines
2.2 KiB
JavaScript
Executable File
/**
|
|
* jQuery.bsgrid v1.38 by @Baishui2004
|
|
* Copyright 2014 Apache v2 License
|
|
* https://github.com/baishui2004/jquery.bsgrid
|
|
*/
|
|
/**
|
|
* @author Baishui2004
|
|
* @Date August 31, 2014
|
|
*/
|
|
(function ($) {
|
|
|
|
$.bsgridLanguage = {
|
|
isFirstPage: '已經是第一頁!',
|
|
isLastPage: '已經是最後一頁!',
|
|
needInteger: '請輸入數字!',
|
|
needRange: function (start, end) {
|
|
return '請輸入一個在' + start + '到' + end + '之間的數字!';
|
|
},
|
|
errorForRequestData: '請求數據失敗!',
|
|
errorForSendOrRequestData: '發送或請求數據失敗!',
|
|
noPagingation: function (noPagingationId) {
|
|
return '共: <span id="' + noPagingationId + '"></span>';
|
|
},
|
|
pagingToolbar: {
|
|
pageSizeDisplay: function (pageSizeId, ifLittle) {
|
|
var html = '';
|
|
if (!ifLittle) {
|
|
html += '每頁顯示:';
|
|
}
|
|
return html + ' <select id="' + pageSizeId + '"></select>';
|
|
},
|
|
currentDisplayRows: function (startRowId, endRowId, ifLittle) {
|
|
var html = '';
|
|
if (!ifLittle) {
|
|
html += '當前顯示:';
|
|
}
|
|
return html + ' <span id="' + startRowId + '"></span> - <span id="' + endRowId + '"></span>';
|
|
},
|
|
totalRows: function (totalRowsId) {
|
|
return '共: <span id="' + totalRowsId + '"></span>';
|
|
},
|
|
currentDisplayPageAndTotalPages: function (curPageId, totalPagesId) {
|
|
return '<div><span id="' + curPageId + '"></span> / <span id="' + totalPagesId + '"></span></div>';
|
|
},
|
|
firstPage: '首 頁',
|
|
prevPage: '上一頁',
|
|
nextPage: '下一頁',
|
|
lastPage: '末 頁',
|
|
gotoPage: '跳 轉',
|
|
refreshPage: '刷 新'
|
|
},
|
|
loadingDataMessage: '正在加載數據,請稍候......',
|
|
noDataToDisplay: '沒有數據可以用於顯示。'
|
|
};
|
|
|
|
})(jQuery); |