From a565c0c45097df14fe1981edd6794c1511f73ae0 Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 8 Mar 2010 22:53:05 +0100 Subject: [PATCH] =?utf8?q?Pokazywanie=20przypis=C3=B3w=20po=20najechaniu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- platforma/manage.py | 0 platforma/static/js/main.js | 7 +++++++ 2 files changed, 7 insertions(+) mode change 100644 => 100755 platforma/manage.py 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() { -- 2.20.1