]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/jot-header.tpl
Merge pull request #12502 from annando/no-gs-import
[friendica.git] / view / theme / frio / templates / jot-header.tpl
index 23aa8663fb64652cad55cc3f89a5dd6cf1e7ca17..9ac56d27d58cbda05f827fbfb85c081371d05184 100644 (file)
                 **/
 
                /* callback */
-               $('body').on('fbrowser.image.main', function(e, filename, embedcode, id) {
+               $('body').on('fbrowser.photo.main', function(e, filename, embedcode, id) {
                        ///@todo this part isn't ideal and need to be done in a better way
                        jotTextOpenUI(document.getElementById("profile-jot-text"));
                        jotActive();
                        addeditortext(embedcode);
                })
-               .on('fbrowser.file.main', function(e, filename, embedcode, id) {
+               .on('fbrowser.attachment.main', function(e, filename, embedcode, id) {
                        jotTextOpenUI(document.getElementById("profile-jot-text"));
                        jotActive();
                        addeditortext(embedcode);
        }
 
        function jotShare(id) {
-               $.get('share/' + id, function(data) {
+               $.get('post/' + id + '/share', function(data) {
                        // remove the former content of the text input
                        $("#profile-jot-text").val("");
                        initEditor(function(){