From ccf957f6814d850de4bfff389e49ed945bc41ea3 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 9 Nov 2015 15:04:47 -0500 Subject: [PATCH] Added cancel button to picture change modal --- public/src/client/account/edit.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/src/client/account/edit.js b/public/src/client/account/edit.js index ed94cf4b57..baf6741078 100644 --- a/public/src/client/account/edit.js +++ b/public/src/client/account/edit.js @@ -89,6 +89,11 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'], message: html, show: true, buttons: { + close: { + label: '[[global:close]]', + callback: onCloseModal, + className: 'btn-link' + }, update: { label: '[[global:save_changes]]', callback: saveSelection @@ -137,6 +142,10 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'], ajaxify.refresh(); }); } + + function onCloseModal() { + modal.modal('hide'); + } }); }); });