1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-09-01 21:22:04 +03:00

Added basic attachment editing functionality

This commit is contained in:
Dan Brown
2016-10-11 20:39:11 +01:00
parent 89509b487a
commit 867fc8be64
7 changed files with 307 additions and 79 deletions

View File

@@ -116,6 +116,7 @@ module.exports = function (ngApp, events) {
uploadedTo: '@'
},
link: function (scope, element, attrs) {
if (attrs.placeholder) element[0].querySelector('.dz-message').textContent = attrs.placeholder;
var dropZone = new DropZone(element[0].querySelector('.dropzone-container'), {
url: scope.uploadUrl,
init: function () {