|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) {
|
|
|
|
|
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper', 'benchpress'], function (header, translator, components, pictureCropper, Benchpress) {
|
|
|
|
|
var AccountEdit = {};
|
|
|
|
|
|
|
|
|
|
AccountEdit.init = function () {
|
|
|
|
@ -84,7 +84,7 @@ define('forum/account/edit', ['forum/account/header', 'translator', 'components'
|
|
|
|
|
return memo || cur.type === 'uploaded';
|
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
|
|
templates.parse('partials/modals/change_picture_modal', {
|
|
|
|
|
Benchpress.parse('partials/modals/change_picture_modal', {
|
|
|
|
|
pictures: pictures,
|
|
|
|
|
uploaded: uploaded,
|
|
|
|
|
icon: { text: ajaxify.data['icon:text'], bgColor: ajaxify.data['icon:bgColor'] },
|
|
|
|
@ -229,7 +229,7 @@ define('forum/account/edit', ['forum/account/header', 'translator', 'components'
|
|
|
|
|
|
|
|
|
|
modal.find('[data-action="upload-url"]').on('click', function () {
|
|
|
|
|
modal.modal('hide');
|
|
|
|
|
templates.parse('partials/modals/upload_picture_from_url_modal', {}, function (html) {
|
|
|
|
|
Benchpress.parse('partials/modals/upload_picture_from_url_modal', {}, function (html) {
|
|
|
|
|
translator.translate(html, function (html) {
|
|
|
|
|
var uploadModal = $(html);
|
|
|
|
|
uploadModal.modal('show');
|
|
|
|
|