后台管理列表[拖动改变列宽]补丁插件 for ShopEX

时间:2024-05-12 20:32:28
【文件属性】:

文件名称:后台管理列表[拖动改变列宽]补丁插件 for ShopEX

文件大小:4KB

文件格式:RAR

更新时间:2024-05-12 20:32:28

程序插件 shopex插件

使用方法:第一步:将本帖附件解压出一个“list.html”文件 ,将其覆盖到 网店根目录\core\admin\view\finder\第二步:将以下代码粘贴到 网店根目录\shopadmin\css\admin.css /*重写 后台列表页 Finder类的initList方法*/ Finder.implement({    initList:function(){     this.parent();      var finderHeader=$('finder-head-'+this.name);             var finderList=$('finder-list-'+this.name);              finderHeader.getElements('.col-resize-handle').each(function(cr,index){                                     cr.addEvent('click',function(e){e.stop();});                                     new Drag(cr.getParent('div[class^=span-]'),{                                        modifiers:{'x':'width'},                                        limit:{'x':[15,500]},                                        handle:cr,                                        unit:0,                                        onBeforeStart:function(el){                                           el.store('rows',finderList.getElements('.row-line div:nth-child('+(index+1)+')'));                                        },                                        onDrag:function(el){                                           if(!finderHeader.hasClass('col-resizing'))finderHeader.addClass('col-resizing');                                           var w=el.getStyle('width').toInt();                                           el.retrieve('rows').setStyle('width',w);                                           $(el).addClass('resizing').retrieve('rows').addClass('resizing');                                        },                                        onComplete:function(el){                                           finderHeader.removeClass('col-resizing');                                           $(el).removeClass('resizing');                                           $(el).retrieve('rows').removeClass('resizing');                                        }                                     });                                });   } });第三步:将以下代码粘贴到 网店根目录\shopad


网友评论