X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=5eb07db44c6ee13efce041203904f613aea86193;hb=1e288dc8a3169a313876ea671979b40c29722752;hp=97e30cdae79f2d3fc5e18e4bc4252fc4728c8342;hpb=88bfe21bead769c3ba81e181b79f9d6426ace351;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 97e30cdae7..5eb07db44c 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -1,51 +1,232 @@ - - - + + $('.item-select').each( function() { + if($(this).is(':checked')) { + if(checkedstr.length != 0) { + checkedstr = checkedstr + ',' + $(this).val(); + } + else { + checkedstr = $(this).val(); + } + } + }); + $.post('item', { dropitems: checkedstr }, function(data) { + window.location.reload(); + }); + } + + function jotGetLink() { + reply = prompt("$linkurl"); + if(reply && reply.length) { + reply = bin2hex(reply); + $('#profile-rotator').show(); + $.get('parse_url?binurl=' + reply, function(data) { + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#profile-rotator').hide(); + }); + } + } - \ No newline at end of file +