add tabs for profile & data + button group

This commit is contained in:
Norbert Renner 2014-08-28 12:43:15 +02:00
parent 5a277b0a34
commit c190f6d48a
3 changed files with 42 additions and 10 deletions

View file

@ -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);
},