add tabs for profile & data + button group
This commit is contained in:
parent
5a277b0a34
commit
c190f6d48a
3 changed files with 42 additions and 10 deletions
|
|
@ -1,6 +1,5 @@
|
|||
BR.Profile = BR.Control.extend({
|
||||
options: {
|
||||
heading: 'Profile',
|
||||
divId: 'profile_div'
|
||||
},
|
||||
|
||||
|
|
@ -8,6 +7,10 @@ BR.Profile = BR.Control.extend({
|
|||
L.DomUtil.get('profile_upload').onsubmit = L.bind(this._submit, this);
|
||||
L.DomUtil.get('clear').onclick = L.bind(this.clear, this);
|
||||
|
||||
$('#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