Fix buttons on user profile

pull/1/head
David Benqué 4 years ago
parent 0411aa3c4a
commit 1c1333068a

@ -101,7 +101,7 @@ define([
var url = APP.origin + '/profile/#' + hash; var url = APP.origin + '/profile/#' + hash;
$('<button>', { $('<button>', {
'class': 'btn btn-primary '+VIEW_PROFILE_BUTTON, 'class': 'btn '+VIEW_PROFILE_BUTTON,
}).text(Messages.profile_viewMyProfile).click(function () { }).text(Messages.profile_viewMyProfile).click(function () {
window.open(url, '_blank'); window.open(url, '_blank');
}).appendTo($container); }).appendTo($container);
@ -136,7 +136,7 @@ define([
APP.$linkEdit = $(); APP.$linkEdit = $();
if (APP.readOnly) { return; } if (APP.readOnly) { return; }
var button = h('button.btn.btn-primary', { var button = h('button.btn', {
title: Messages.clickToEdit title: Messages.clickToEdit
}, Messages.profile_addLink); }, Messages.profile_addLink);
APP.$linkEdit = $(button); APP.$linkEdit = $(button);

Loading…
Cancel
Save