forked from 0x2620/oxjs
minor fixes
This commit is contained in:
parent
ee93ed673e
commit
1083a324dc
3 changed files with 34 additions and 26 deletions
|
|
@ -922,6 +922,7 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
|
||||
function preview() {
|
||||
Ox.print('preview selected', !self.preview, self.options.selected)
|
||||
if (self.options.selected.length) {
|
||||
self.preview = !self.preview;
|
||||
if (self.preview) {
|
||||
|
|
@ -1376,6 +1377,25 @@ Ox.List = function(options, self) {
|
|||
updatePositions();
|
||||
}
|
||||
|
||||
/*@
|
||||
closePreview <f> to be called when preview is closed externally
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.closePreview = function() {
|
||||
Ox.print('-- closePreview --')
|
||||
self.preview = false;
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
clearCache <f> empty list cache
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.clearCache = function() { // fixme: was used by TextList resizeColumn, now probably no longer necessary
|
||||
self.$pages = [];
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
editItem <f> turn item into edit form
|
||||
(pos) -> <u> edit item at position
|
||||
|
|
@ -1426,24 +1446,6 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
/*@
|
||||
clearCache <f> empty list cache
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.clearCache = function() { // fixme: was used by TextList resizeColumn, now probably no longer necessary
|
||||
self.$pages = [];
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
closePreview <f> close preview
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.closePreview = function() {
|
||||
self.preview = false;
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
paste <f> paste data
|
||||
(data) -> <o> the list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue