active: 1,
getAutoCreate : function(){
- cfg = {
- tag: 'ul',
- cls: 'pagination',
- cn: []
- }
+ cfg = {
+ tag: 'ul',
+ cls: 'pagination',
+ cn: []
+ };
if (this.inverse) {
- cfg.cls += ' inverse'
+ cfg.cls += ' inverse';
}
if (this.html) {
- cfg.html=this.html
+ cfg.html=this.html;
}
if (this.cls) {
- cfg.cls=this.cls
+ cfg.cls=this.cls;
}
cfg.cn[0]={
tag: 'li',
html: '«'
}
]
- }
+ };
var from=this.from>0?this.from:1;
var to=this.to-from<=10?this.to:from+10;
var active=this.active>=from&&this.active<=to?this.active:null;
}
]
}
- )
+ );
}
cfg.cn.push(
}
]
}
- )
+ );
return cfg;
}