Added cancel button to picture change modal

v1.18.x
Julian Lam 9 years ago
parent 277a3ba2af
commit ccf957f681

@ -89,6 +89,11 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'],
message: html, message: html,
show: true, show: true,
buttons: { buttons: {
close: {
label: '[[global:close]]',
callback: onCloseModal,
className: 'btn-link'
},
update: { update: {
label: '[[global:save_changes]]', label: '[[global:save_changes]]',
callback: saveSelection callback: saveSelection
@ -137,6 +142,10 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'],
ajaxify.refresh(); ajaxify.refresh();
}); });
} }
function onCloseModal() {
modal.modal('hide');
}
}); });
}); });
}); });

Loading…
Cancel
Save