app/packs/src/decidim/decidim_awesome/proposals/images.js in decidim-decidim_awesome-0.8.3 vs app/packs/src/decidim/decidim_awesome/proposals/images.js in decidim-decidim_awesome-0.9.1
- old
+ new
@@ -1,19 +1,19 @@
$(() => {
window.DecidimAwesome = window.DecidimAwesome || {};
const token = $('meta[name="csrf-token"]').attr("content");
const $textarea = $("textarea#proposal_body");
- const t = window.DecidimAwesome.texts.drag_and_drop_image;
+ const text = window.DecidimAwesome.texts.drag_and_drop_image;
if (!$textarea.length) {
return;
}
if (window.DecidimAwesome.allow_images_in_proposals) {
// Add the capability to upload images only (they will be presented as links)
- $textarea.after(`<p class="help-text">${t}</p>`);
+ $textarea.after(`<p class="help-text">${text}</p>`);
$textarea.inlineattachment({
uploadUrl: window.DecidimAwesome.editor_uploader_path,
uploadFieldName: "image",
jsonFieldName: "url",
progressText: "[Uploading file...]",