mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-17 01:13:19 +00:00
新增文件分页最大数量
This commit is contained in:
parent
94cc3b089d
commit
3a168d93a7
|
@ -4,11 +4,11 @@ system.config = $.extend(system.config, {
|
|||
// Automatic refresh rate (ms)
|
||||
reloadStep: 5000,
|
||||
// The default num of entries for each page
|
||||
pageSize: 30,
|
||||
pageSize: 200,
|
||||
// Enable/disable pagination for torrentlist.datagrid
|
||||
pagination: true,
|
||||
// Options in torrentlist.datagrid PageList
|
||||
pageList: [10, 20, 30, 40, 50, 100, 150, 200, 250, 300],
|
||||
pageList: [10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 5000],
|
||||
// The initial interface defaults to the selected node, the name can refer to the language package tree
|
||||
defaultSelectNode: "actively",
|
||||
// Whether the torrent details are automatically expanded
|
||||
|
|
|
@ -1320,7 +1320,7 @@ $.fn.pagination.parseOptions=function(_d1){
|
|||
var t=$(_d1);
|
||||
return $.extend({},$.parser.parseOptions(_d1,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showPageInfo:"boolean",showRefresh:"boolean"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined)});
|
||||
};
|
||||
$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showPageInfo:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh","info"],onSelectPage:function(_d2,_d3){
|
||||
$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 5000],loading:false,buttons:null,showPageList:true,showPageInfo:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh","info"],onSelectPage:function(_d2,_d3){
|
||||
},onBeforeRefresh:function(_d4,_d5){
|
||||
},onRefresh:function(_d6,_d7){
|
||||
},onChangePageSize:function(_d8){
|
||||
|
@ -11753,7 +11753,7 @@ col.styler=col.styler1;
|
|||
col.formatter1=col.styler1=undefined;
|
||||
});
|
||||
}};
|
||||
$.fn.datagrid.defaults=$.extend({},$.fn.panel.defaults,{sharedStyleSheet:false,frozenColumns:undefined,columns:undefined,fitColumns:false,resizeHandle:"right",resizeEdge:5,autoRowHeight:true,toolbar:null,striped:false,method:"post",nowrap:true,idField:null,url:null,data:null,loadMsg:"Processing, please wait ...",emptyMsg:"",rownumbers:false,singleSelect:false,ctrlSelect:false,selectOnCheck:true,checkOnSelect:true,pagination:false,pagePosition:"bottom",pageNumber:1,pageSize:10,pageList:[10,20,30,40,50],queryParams:{},sortName:null,sortOrder:"asc",multiSort:false,remoteSort:true,showHeader:true,showFooter:false,scrollOnSelect:true,scrollbarSize:18,rownumberWidth:30,editorHeight:24,headerEvents:{mouseover:_6e4(true),mouseout:_6e4(false),click:_6e8,dblclick:_6ed,contextmenu:_6f0},rowEvents:{mouseover:_6f2(true),mouseout:_6f2(false),click:_6f9,dblclick:_703,contextmenu:_707},rowStyler:function(_8a2,_8a3){
|
||||
$.fn.datagrid.defaults=$.extend({},$.fn.panel.defaults,{sharedStyleSheet:false,frozenColumns:undefined,columns:undefined,fitColumns:false,resizeHandle:"right",resizeEdge:5,autoRowHeight:true,toolbar:null,striped:false,method:"post",nowrap:true,idField:null,url:null,data:null,loadMsg:"Processing, please wait ...",emptyMsg:"",rownumbers:false,singleSelect:false,ctrlSelect:false,selectOnCheck:true,checkOnSelect:true,pagination:false,pagePosition:"bottom",pageNumber:1,pageSize:10,pageList:[10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 5000],queryParams:{},sortName:null,sortOrder:"asc",multiSort:false,remoteSort:true,showHeader:true,showFooter:false,scrollOnSelect:true,scrollbarSize:18,rownumberWidth:30,editorHeight:24,headerEvents:{mouseover:_6e4(true),mouseout:_6e4(false),click:_6e8,dblclick:_6ed,contextmenu:_6f0},rowEvents:{mouseover:_6f2(true),mouseout:_6f2(false),click:_6f9,dblclick:_703,contextmenu:_707},rowStyler:function(_8a2,_8a3){
|
||||
},loader:function(_8a4,_8a5,_8a6){
|
||||
var opts=$(this).datagrid("options");
|
||||
if(!opts.url){
|
||||
|
|
2
src/tr-web-control/script/min/system.min.js
vendored
2
src/tr-web-control/script/min/system.min.js
vendored
|
@ -1,4 +1,4 @@
|
|||
var system={version:"1.6.0",rootPath:"tr-web-control/",codeupdate:"20190724",configHead:"transmission-web-control",config:{autoReload:true,reloadStep:5E3,pageSize:30,pagination:true,pageList:[10,20,30,40,50,100,150,200,250,300],defaultSelectNode:null,autoExpandAttribute:false,defaultLang:"",foldersShow:false,theme:"default",showBTServers:false,ui:{status:{tree:{},layout:{main:{},body:{},left:{}},panel:{},size:{nav:{},attribute:{}}}},hideSubfolders:false,simpleCheckMode:false,nav:{servers:true,folders:true,
|
||||
var system={version:"1.6.0",rootPath:"tr-web-control/",codeupdate:"20190724",configHead:"transmission-web-control",config:{autoReload:true,reloadStep:5E3,pageSize:30,pagination:true,pageList:[10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 5000],defaultSelectNode:null,autoExpandAttribute:false,defaultLang:"",foldersShow:false,theme:"default",showBTServers:false,ui:{status:{tree:{},layout:{main:{},body:{},left:{}},panel:{},size:{nav:{},attribute:{}}}},hideSubfolders:false,simpleCheckMode:false,nav:{servers:true,folders:true,
|
||||
statistics:true,labels:false},labels:[],labelMaps:{},ignoreVersion:[]},storageKeys:{dictionary:{folders:"dictionary.folders"}},dictionary:{folders:null},checkUpdateScript:"https://api.github.com/repos/ronggang/transmission-web-control/releases/latest",contextMenus:{},panel:null,lang:null,reloading:false,autoReloadTimer:null,downloadDir:"",islocal:false,B64:new Base64,currentTorrentId:0,control:{tree:null,torrentlist:null},userConfig:{torrentList:{fields:[],sortName:null,sortOrder:"asc"}},serverConfig:null,
|
||||
serverSessionStats:null,templates:{},checkedRows:[],uiIsInitialized:false,popoverCount:0,setlang:function(a,b){a||(a=this.config.defaultLang?this.config.defaultLang:navigator.language||navigator.browserLanguage);a||(a="zh-CN");if(a.indexOf("-")!=-1)a=a.split("-")[0].toLocaleLowerCase()+"-"+a.split("-")[1].toLocaleUpperCase();this.languages[a]||(a="en");a=a.replace("-","_");$.getJSON(system.rootPath+"i18n/"+a+".json",function(c){if(c)system.lang=$.extend(true,system.defaultLang,c);system.resetLangText();
|
||||
$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-"+a+".js").done(function(){b&&b()}).fail(function(){$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-en.js",function(){b&&b()})})})},init:function(a,b){this.readConfig();this.lastUIStatus=JSON.parse(JSON.stringify(this.config.ui.status));this.islocal=b==1?true:false;this.panel={main:$("#main"),top:$("#m_top"),toolbar:$("#m_toolbar"),left_layout:$("#m_left_layout"),left:$("#m_left"),body:$("#m_body"),layout_body:$("#layout_body"),
|
||||
|
|
|
@ -10,7 +10,7 @@ var system = {
|
|||
reloadStep: 5000,
|
||||
pageSize: 30,
|
||||
pagination: true,
|
||||
pageList: [10, 20, 30, 40, 50, 100, 150, 200, 250, 300],
|
||||
pageList: [10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 5000],
|
||||
defaultSelectNode: null,
|
||||
autoExpandAttribute: false,
|
||||
defaultLang: "",
|
||||
|
|
Loading…
Reference in New Issue
Block a user