Pokazywanie przypisów po najechaniu.
authorzuber <marek@stepniowski.com>
Mon, 8 Mar 2010 21:53:05 +0000 (22:53 +0100)
committerzuber <marek@stepniowski.com>
Mon, 8 Mar 2010 21:53:05 +0000 (22:53 +0100)
platforma/manage.py [changed mode: 0644->0755]
platforma/static/js/main.js

old mode 100644 (file)
new mode 100755 (executable)
index 3c1a3c0..f9adfab 100644 (file)
@@ -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() {