bugfix in profile_settings, removed files from conf (always public/files) and changed default avatar to defunct brightkite avatar
This commit is contained in:
parent
204ddefe61
commit
9a56fe4871
@ -65,13 +65,15 @@ MyProfile = function(wrapper) {
|
|||||||
//
|
//
|
||||||
this.make_form = function() {
|
this.make_form = function() {
|
||||||
var div = $a($td(this.tab, 0, 1), 'div');
|
var div = $a($td(this.tab, 0, 1), 'div');
|
||||||
this.form = new wn.ui.FieldGroup()
|
this.form = new wn.ui.FieldGroup({
|
||||||
this.form.make_fields(div, [
|
parent: div,
|
||||||
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
fields: [
|
||||||
{fieldname:'last_name', fieldtype:'Data',label:'Last Name'},
|
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
||||||
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
{fieldname:'last_name', fieldtype:'Data',label:'Last Name'},
|
||||||
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
||||||
]);
|
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
this.form.fields_dict.update.input.onclick = function() {
|
this.form.fields_dict.update.input.onclick = function() {
|
||||||
var v = me.form.get_values();
|
var v = me.form.get_values();
|
||||||
@ -99,7 +101,6 @@ MyProfile = function(wrapper) {
|
|||||||
{fieldname:'change', fieldtype:'Button', label:'Change'}
|
{fieldname:'change', fieldtype:'Button', label:'Change'}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
d.make();
|
|
||||||
d.fields_dict.change.input.onclick = function() {
|
d.fields_dict.change.input.onclick = function() {
|
||||||
var v = d.get_values();
|
var v = d.get_values();
|
||||||
if(v) {
|
if(v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user