]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
improved the css of the popups for tagging
authorCash Costello <cash.costello@gmail.com>
Sun, 23 Aug 2009 22:17:23 +0000 (22:17 +0000)
committerCash Costello <cash.costello@gmail.com>
Sun, 23 Aug 2009 22:17:23 +0000 (22:17 +0000)
views/default/js/tagging.php
views/default/tidypics/css.php
views/default/tidypics/tagging.php

index 11f1957837ee0fc4660c1b76b22cd8fdedd344d8..bd689050282dd7c82f30506853763c57a7e0429a 100644 (file)
 \r
        function showTagMenu(oObject, oCoordenates)\r
        {\r
-               offsetX = -100;\r
+               offsetX = 6;\r
+               offsetY = 10;\r
 \r
                imgOffset = $('#tidypics_image').offset();\r
 \r
                if (oCoordenates.width != 0 && oCoordenates.height != 0) {\r
                        coordinates = oCoordenates;\r
                        \r
-                       _top = imgOffset.top + oCoordenates.y2;\r
-                       _left = imgOffset.left + oCoordenates.x2 + offsetX;\r
+                       _top = imgOffset.top + oCoordenates.y2 + offsetY;\r
+                       _left = imgOffset.left + oCoordenates.x1 + offsetX;\r
 \r
                        $('#tidypics_tag_menu').show().css({\r
                                "top": _top + "px",\r
index f95bc1d58af2e36a5fa26f984809c203bf23046b..a614705bfbf72e76b3ef8b0cc1fbbc88f2e8a72b 100644 (file)
@@ -194,6 +194,8 @@ display:none;
 overflow:hidden; 
 position:absolute; 
 z-index:10000;
+-webkit-border-radius: 8px; 
+-moz-border-radius: 8px;
 }
 
 #tidypics_tag_instruct_text {
@@ -214,13 +216,16 @@ margin:0;
 width:240px;
 max-height:400px;
 overflow:hidden;
+-webkit-border-radius: 8px; 
+-moz-border-radius: 8px;
 }
 
-#tidypics_tagmenu_header {
+#tidypics_popup_header {
 width:100%;
 margin-bottom:10px;
 }
 
+
 #tidypics_tagmenu_left {
 width:175px;
 float:left;
@@ -235,6 +240,9 @@ margin-top:2px;
 }
 
 #tidypics_delete_tag_menu {
+-webkit-border-radius: 8px; 
+-moz-border-radius: 8px;
+overflow:hidden;
 }
 
 .tidypics_tag {
index a3ba57cf86b3668013df8f58c026c92189b6de0c..f911fe217ee7611c3ecebd137cc700c97e2cefe3 100644 (file)
@@ -27,7 +27,7 @@
        <div id='tidypics_tag_instruct_button_div'><button class='submit_button' id='tidypics_tag_instruct_button' onclick='stopTagging()'><?php echo elgg_echo('tidypics:finish_tagging'); ?></button></div>\r
 </div>\r
 <div id="tidypics_tag_menu" class="tidypics_popup">\r
-       <div id='tidypics_tagmenu_header'><h3><?php echo elgg_echo('tidypics:tagthisphoto'); ?></h3></div>\r
+       <div id='tidypics_popup_header'><h3><?php echo elgg_echo('tidypics:tagthisphoto'); ?></h3></div>\r
 <?php\r
 \r
        if($viewer) {\r
@@ -64,9 +64,9 @@
 ?>\r
 </div>\r
 <div id="tidypics_delete_tag_menu" class="tidypics_popup">\r
+<div id='tidypics_popup_header'><h3><?php echo elgg_echo('tidypics:deltag_title'); ?></h3></div>\r
 <?php\r
        if ($photo_tags) {\r
-               echo elgg_echo('tidypics:deltag_title') . '<br />';\r
                $content = "<input type='hidden' name='image_guid' value='{$file_guid}' />";\r
                foreach ($links as $id => $text) {\r
                        $name = "tags[{$id}]";\r