extract Control from Profile class into Tabs control

This commit is contained in:
Norbert Renner 2014-08-29 15:32:06 +02:00
parent c190f6d48a
commit bb371a30a7
4 changed files with 19 additions and 15 deletions

14
js/control/Tabs.js Normal file
View file

@ -0,0 +1,14 @@
BR.Tabs = BR.Control.extend({
options: {
divId: 'tabs_div'
},
onAdd: function (map) {
$('#tab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
return BR.Control.prototype.onAdd.call(this, map);
}
});