extract Control from Profile class into Tabs control
This commit is contained in:
parent
c190f6d48a
commit
bb371a30a7
4 changed files with 19 additions and 15 deletions
14
js/control/Tabs.js
Normal file
14
js/control/Tabs.js
Normal 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);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue