From 4871e4b13f8e6abe452fb68455ce626e081afa18 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 4 Apr 2012 00:34:31 +0200 Subject: [PATCH] allow for list preview to be opened externally --- source/Ox.UI/js/List/Ox.TextList.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index 8d457212..87b9b082 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -821,11 +821,6 @@ Ox.TextList = function(options, self) { } }; - that.closePreview = function() { - that.$body.closePreview(); - return that; - }; - that.addItem = function(item) { /* self.options.items.push(item); @@ -834,6 +829,11 @@ Ox.TextList = function(options, self) { */ } + that.closePreview = function() { + that.$body.closePreview(); + return that; + }; + that.editCell = function(id, key, select) { Ox.Log('List', 'editCell', id, key) var $item = getItem(id), @@ -893,7 +893,12 @@ Ox.TextList = function(options, self) { that.loseFocus = function() { that.$body.loseFocus(); return that; - } + }; + + that.openPreview = function() { + that.$body.openPreview(); + return that; + }; that.paste = function(data) { that.$body.paste();