Merge branch 'master' of git@stigma:platforma
authorŁukasz Rekucki <lrekucki@gmail.com>
Tue, 9 Mar 2010 20:11:19 +0000 (21:11 +0100)
committerŁukasz Rekucki <lrekucki@gmail.com>
Tue, 9 Mar 2010 20:11:19 +0000 (21:11 +0100)
platforma/manage.py [changed mode: 0644->0755]
platforma/static/js/main.js

old mode 100644 (file)
new mode 100755 (executable)
index a92dfe4..8b55af9 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({width: 300, position: 'absolute', left: event.clientX - editable.offset().left + 5, top: event.clientY - editable.offset().top + 5})
+                .show();
+        } else {
+            $('*[x-annotation-box]').hide();
+        }
     });
 
     $('.motyw').live('click', function() {