From 7da60a63d558b60db4a8423536fcce9b5eed31d5 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 15 Oct 2018 16:30:04 +0800 Subject: [PATCH] sync --- Roo.js | 2 +- roojs-bootstrap-debug.js | 8 ++++---- roojs-bootstrap.js | 8 ++++---- roojs-core-debug.js | 2 +- roojs-core.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Roo.js b/Roo.js index 39662237ef..3a75d79a97 100644 --- a/Roo.js +++ b/Roo.js @@ -343,7 +343,7 @@ Roo.factory(conf, Roo.data); return; // alerT? } - if(window.location.href.indexOf("localhost") !== -1) { + if(window.location.href.indexOf("localhost") == -1) { return; } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 44dbdfbb07..dc0f919675 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -24732,7 +24732,7 @@ Roo.extend(Roo.bootstrap.PagingToolbar, Roo.bootstrap.NavSimplebar, { this.first = this.navgroup.addItem({ tooltip: this.firstText, cls: "prev", - icon : 'fa fa-backward', + icon : 'fa fa-step-backward', disabled: true, preventDefault: true, listeners : { click : this.onClick.createDelegate(this, ["first"]) } @@ -24741,7 +24741,7 @@ Roo.extend(Roo.bootstrap.PagingToolbar, Roo.bootstrap.NavSimplebar, { this.prev = this.navgroup.addItem({ tooltip: this.prevText, cls: "prev", - icon : 'fa fa-step-backward', + icon : 'fa fa-backward', disabled: true, preventDefault: true, listeners : { click : this.onClick.createDelegate(this, ["prev"]) } @@ -24769,14 +24769,14 @@ Roo.extend(Roo.bootstrap.PagingToolbar, Roo.bootstrap.NavSimplebar, { this.next = this.navgroup.addItem({ tooltip: this.nextText, cls: "next", - html : ' ', + html : ' ', disabled: true, preventDefault: true, listeners : { click : this.onClick.createDelegate(this, ["next"]) } }); this.last = this.navgroup.addItem({ tooltip: this.lastText, - icon : 'fa fa-forward', + icon : 'fa fa-step-forward', cls: "next", disabled: true, preventDefault: true, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 0c34c82899..cc864131f9 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1024,10 +1024,10 @@ if(k==e.TAB){e.stopEvent();ed.completeEdit();if(e.shiftKey){B=g.walkCells(ed.row Roo.bootstrap.PagingToolbar=function(A){this.ds=A.dataSource;if(A.store&&!this.ds){this.store=Roo.factory(A.store,Roo.data);this.ds=this.store;this.ds.xmodule=this.xmodule||false;}this.toolbarItems=[];if(A.items){this.toolbarItems=A.items;}Roo.bootstrap.PagingToolbar.superclass.constructor.call(this,A); this.cursor=0;if(this.ds){this.bind(this.ds);}this.navgroup=new Roo.bootstrap.NavGroup({cls:'pagination'});};Roo.extend(Roo.bootstrap.PagingToolbar,Roo.bootstrap.NavSimplebar,{pageSize:20,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:"Page",afterPageText:"of {0}",firstText:"First Page",prevText:"Previous Page",nextText:"Next Page",lastText:"Last Page",refreshText:"Refresh",buttons:false,onRender:function(ct,A){Roo.bootstrap.PagingToolbar.superclass.onRender.call(this,ct,A); this.navgroup.parentId=this.id;this.navgroup.onRender(this.el,null);if(this.displayInfo){this.el.select('ul.navbar-nav',true).first().createChild({cls:'x-paging-info'});this.displayEl=this.el.select('.x-paging-info',true).first();}var B=this;if(this.buttons){Roo.each(B.buttons,function(e){Roo.factory(e).render(B.el); -});}Roo.each(B.toolbarItems,function(e){B.navgroup.addItem(e);});this.first=this.navgroup.addItem({tooltip:this.firstText,cls:"prev",icon:'fa fa-backward',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["first"])}});this.prev=this.navgroup.addItem({tooltip:this.prevText,cls:"prev",icon:'fa fa-step-backward',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["prev"])} -});var C=this.navgroup.addItem({tagtype:'span',cls:'x-paging-position',html:this.beforePageText+''+''+String.format(this.afterPageText,1)+''});this.field=C.el.select('input',true).first(); -this.field.on("keydown",this.onPagingKeydown,this);this.field.on("focus",function(){this.dom.select();});this.afterTextEl=C.el.select('.x-paging-after',true).first();this.next=this.navgroup.addItem({tooltip:this.nextText,cls:"next",html:' ',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["next"])} -});this.last=this.navgroup.addItem({tooltip:this.lastText,icon:'fa fa-forward',cls:"next",disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["last"])}});this.loading=this.navgroup.addItem({tooltip:this.refreshText,icon:'fa fa-refresh',preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["refresh"])} +});}Roo.each(B.toolbarItems,function(e){B.navgroup.addItem(e);});this.first=this.navgroup.addItem({tooltip:this.firstText,cls:"prev",icon:'fa fa-step-backward',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["first"])} +});this.prev=this.navgroup.addItem({tooltip:this.prevText,cls:"prev",icon:'fa fa-backward',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["prev"])}});var C=this.navgroup.addItem({tagtype:'span',cls:'x-paging-position',html:this.beforePageText+''+''+String.format(this.afterPageText,1)+''} +);this.field=C.el.select('input',true).first();this.field.on("keydown",this.onPagingKeydown,this);this.field.on("focus",function(){this.dom.select();});this.afterTextEl=C.el.select('.x-paging-after',true).first();this.next=this.navgroup.addItem({tooltip:this.nextText,cls:"next",html:' ',disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["next"])} +});this.last=this.navgroup.addItem({tooltip:this.lastText,icon:'fa fa-step-forward',cls:"next",disabled:true,preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["last"])}});this.loading=this.navgroup.addItem({tooltip:this.refreshText,icon:'fa fa-refresh',preventDefault:true,listeners:{click:this.onClick.createDelegate(this,["refresh"])} });},updateInfo:function(){if(this.displayEl){var A=(typeof(this.getCount)=='undefined')?this.ds.getCount():this.getCount();var B=A==0?this.emptyMsg:String.format(this.displayMsg,this.cursor+1,this.cursor+A,this.ds.getTotalCount());this.displayEl.update(B); }},onLoad:function(ds,r,o){this.cursor=o.params.start?o.params.start:0;var d=this.getPageData(),ap=d.activePage,ps=d.pages;this.afterTextEl.dom.innerHTML=String.format(this.afterPageText,d.pages);this.field.dom.value=ap;this.first.setDisabled(ap==1);this.prev.setDisabled(ap==1); this.next.setDisabled(ap==ps);this.last.setDisabled(ap==ps);this.loading.enable();this.updateInfo();},getPageData:function(){var A=this.ds.getTotalCount();return {total:A,activePage:Math.ceil((this.cursor+this.pageSize)/this.pageSize),pages:A0x10000){bs[0]=0xF0|((c&0x1C0000)>>>18);bs[1]=0x80|((c&0x3F000)>>>12);bs[2]=0x80|((c&0xFC0)>>>6);bs[3]=0x80|(c&0x3F);}else if(c>0x800){bs[0]=0xE0|((c&0xF000)>>>12); -- 2.39.2