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