From: zuber Date: Mon, 8 Mar 2010 21:53:05 +0000 (+0100) Subject: Pokazywanie przypisów po najechaniu. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/a565c0c45097df14fe1981edd6794c1511f73ae0?ds=inline Pokazywanie przypisów po najechaniu. --- diff --git a/platforma/manage.py b/platforma/manage.py old mode 100644 new mode 100755 diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 3c1a3c00..f9adfabb 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -659,6 +659,13 @@ function html(element) { if (!editable.hasClass('active')) { editable.addClass('active').append(button); } + if (editable.is('.annotation-inline-box')) { + $('*[x-annotation-box]', editable) + .css({position: 'absolute', left: event.clientX - editable.offset().left, top: event.clientY - editable.offset().top}) + .show(); + } else { + $('*[x-annotation-box]').hide(); + } }); $('.motyw').live('click', function() {