1
0
Fork 0

Move Browser & Upload to own namespace

This commit is contained in:
Philipp Holzer 2022-11-27 01:25:59 +01:00
commit 50316bbb80
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
20 changed files with 77 additions and 121 deletions

View file

@ -82,7 +82,7 @@ $(document).ready(function () {
});
// Insert filebrowser images into the input field (field_fileinput.tpl).
$("body").on("fbrowser.photos.input", function (e, filename, embedcode, id, img) {
$("body").on("fbrowser.photo.input", function (e, filename, embedcode, id, img) {
// Select the clicked button by it's attribute.
var elm = $("[image-input='select']");
// Select the input field which belongs to this button.
@ -137,7 +137,7 @@ Dialog._get_url = function (type, name, id) {
// Does load the filebrowser into the jot modal.
Dialog.showJot = function () {
var type = "photos";
var type = "photo";
var name = "main";
var url = Dialog._get_url(type, name);