X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=6195c5bbc6d4b506c4db89d3cb1374e9060f359e;hb=f6a43afb8da061ac13d778eb7fba6e2ea6dda6d7;hp=97e30cdae79f2d3fc5e18e4bc4252fc4728c8342;hpb=88bfe21bead769c3ba81e181b79f9d6426ace351;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 97e30cdae7..6195c5bbc6 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?url=' + reply, function(data) { + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#profile-rotator').hide(); + }); + } + } - \ No newline at end of file +