TabPanel: add 'selectTab' alias

This commit is contained in:
rolux 2012-06-21 13:48:29 +02:00
parent 93a9805da7
commit f04f6d2663

View file

@ -90,8 +90,8 @@ Ox.TabPanel = function(options, self) {
select <f> select select <f> select
(id) -> <o> select panel (id) -> <o> select panel
@*/ @*/
// fixme: does this collide with a jquery fn? // FIXME: remove select (collides with a jquery method)
that.select = function(id) { that.select = that.selectTab = function(id) {
if (Ox.getIndexById(self.options.tabs, id) > -1) { if (Ox.getIndexById(self.options.tabs, id) > -1) {
self.$tabs.options({value: id}); self.$tabs.options({value: id});
} }