From 93c077dabd2e02a542d8f5ee6939f705a24be213 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 10 Nov 2015 16:02:56 -0500 Subject: [PATCH] closes #3825 --- public/language/en_GB/modules.json | 6 +++++- public/src/modules/coverPhoto.js | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/public/language/en_GB/modules.json b/public/language/en_GB/modules.json index 673ad026a9..6bb97b68a4 100644 --- a/public/language/en_GB/modules.json +++ b/public/language/en_GB/modules.json @@ -28,5 +28,9 @@ "bootbox.ok": "OK", "bootbox.cancel": "Cancel", - "bootbox.confirm": "Confirm" + "bootbox.confirm": "Confirm", + + "cover.dragging_title": "Cover Photo Positioning", + "cover.dragging_message": "Drag the cover photo to the desired position and click \"Save\"", + "cover.saved": "Cover photo image and position saved" } \ No newline at end of file diff --git a/public/src/modules/coverPhoto.js b/public/src/modules/coverPhoto.js index c9794d3370..6a45732c9b 100644 --- a/public/src/modules/coverPhoto.js +++ b/public/src/modules/coverPhoto.js @@ -58,6 +58,13 @@ define('coverPhoto', [ axis: 'y', units: 'percent' }); + + app.alert({ + alert_id: 'drag_start', + title: '[[modules:cover.dragging_title]]', + message: '[[modules:cover.dragging_message]]', + timeout: 5000 + }); } coverPhoto.save = function() { @@ -69,6 +76,7 @@ define('coverPhoto', [ coverPhoto.coverEl.backgroundDraggable('disable'); coverPhoto.coverEl.off('dragover', coverPhoto.onDragOver); coverPhoto.coverEl.off('drop', coverPhoto.onDrop); + app.alertSuccess('[[modules:cover.saved]]'); } else { app.alertError(err.message); }