remove Ox.ListPage
This commit is contained in:
parent
8202aaa6e1
commit
b095385d14
2 changed files with 3 additions and 16 deletions
|
@ -382,7 +382,7 @@ Ox.List = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function constructEmptyPage(page) {
|
function constructEmptyPage(page) {
|
||||||
var i, $page = Ox.ListPage().css(getPageCSS(page));
|
var i, $page = $('<div>').addClass('OxPage').css(getPageCSS(page));
|
||||||
Ox.loop(getPageLength(page), function() {
|
Ox.loop(getPageLength(page), function() {
|
||||||
Ox.ListItem({
|
Ox.ListItem({
|
||||||
construct: self.options.construct
|
construct: self.options.construct
|
||||||
|
@ -855,7 +855,7 @@ Ox.List = function(options, self) {
|
||||||
sort: self.options.sort
|
sort: self.options.sort
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var $emptyPage = self.$pages[page];
|
var $emptyPage = self.$pages[page];
|
||||||
self.$pages[page] = Ox.ListPage().css(getPageCSS(page));
|
self.$pages[page] = $('<div>').addClass('OxPage').css(getPageCSS(page));
|
||||||
result.data.items.forEach(function(v, i) {
|
result.data.items.forEach(function(v, i) {
|
||||||
var pos = offset + i;
|
var pos = offset + i;
|
||||||
self.$items[pos] = Ox.ListItem({
|
self.$items[pos] = Ox.ListItem({
|
||||||
|
@ -1384,7 +1384,7 @@ Ox.List = function(options, self) {
|
||||||
clear();
|
clear();
|
||||||
that.$content.empty();
|
that.$content.empty();
|
||||||
self.$pages = [];
|
self.$pages = [];
|
||||||
self.$pages[0] = Ox.Element()
|
self.$pages[0] = $('<div>')
|
||||||
.addClass('OxPage')
|
.addClass('OxPage')
|
||||||
.css({
|
.css({
|
||||||
left: self.listMargin / 2 + 'px',
|
left: self.listMargin / 2 + 'px',
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/*@
|
|
||||||
Ox.ListPage <f> ListPage Object
|
|
||||||
options <o> Options object
|
|
||||||
self <o> Shared private variable
|
|
||||||
([options[, self]]) -> <o:Ox.Element> ListPage Object
|
|
||||||
@*/
|
|
||||||
Ox.ListPage = function(options, self) {
|
|
||||||
self = self || {};
|
|
||||||
var that = Ox.Element({}, self).addClass('OxPage');
|
|
||||||
return that;
|
|
||||||
};
|
|
Loading…
Reference in a new issue