X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/23a68120c494341344d4728c5fc4528c94d5c53d..1eeb03096b5072b81f245d1b1716d1184e40f05d:/src/editor/views/attachments/add_attachments.js diff --git a/src/editor/views/attachments/add_attachments.js b/src/editor/views/attachments/add_attachments.js new file mode 100644 index 0000000..250b2b8 --- /dev/null +++ b/src/editor/views/attachments/add_attachments.js @@ -0,0 +1,34 @@ +define(function(require) { + 'use strict'; + + var $ = require('libs/jquery'); + + return function (dialog) { + var body = $(".modal-body", dialog.$el); + var input = $("input[name=href]", body); + $.ajax(config.documentGalleryUrl, { + dataType: 'json', + success: function (data, status, jqxhr) { + for (var i in data) { + var img = $(""); + var button = $("