Move tpl and less to core

This commit is contained in:
pichalite
2017-02-06 19:11:58 +00:00
parent a808d1b4d9
commit b757f563df
3 changed files with 35 additions and 2 deletions

View File

@@ -212,7 +212,8 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator',
}
function handleImageCrop(data) {
templates.parse('partials/modals/crop_uploaded_picture', {url: data.url}, function (cropperHtml) {
$('#crop-picture-modal').remove();
templates.parse('modals/crop_picture', {url: data.url}, function (cropperHtml) {
translator.translate(cropperHtml, function (translated) {
var cropperModal = $(translated);
cropperModal.modal('show');