mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
closes #3825
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user