From 993825d5ca798fe5a0825f09a4adb10d3aa731e8 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 20 Jun 2009 21:20:35 +0000 Subject: continuing to work on cleaning up css --- views/default/js/tagging.php | 26 +++++++++++++------------- views/default/tidypics/css.php | 12 ++++++------ views/default/tidypics/image_menu.php | 2 +- views/default/tidypics/tagging.php | 20 ++++++++++---------- 4 files changed, 30 insertions(+), 30 deletions(-) (limited to 'views') diff --git a/views/default/js/tagging.php b/views/default/js/tagging.php index 193ce1458..586291b4c 100644 --- a/views/default/js/tagging.php +++ b/views/default/js/tagging.php @@ -12,9 +12,9 @@ // add to DOM as soon as ready $(document).ready(function () { - $('ul#phototagging-menu li').quicksearch({ + $('ul#tidypics_phototag_list li').quicksearch({ position: 'before', - attached: 'ul#phototagging-menu', + attached: 'ul#tidypics_phototag_list', loaderText: '', inputClass: 'input-filter', labelText: "

", @@ -59,7 +59,7 @@ addTagEvents(); - $('.phototag-links').hover( + $('.tidypics_phototag_links').hover( function(){ code = this.id.substr(7); // cut off taglink to get unique id $('#tag'+code).show(); @@ -136,10 +136,10 @@ tagging = 1; - $('#tag_control').text("Stop Tagging"); + $('#tidypics_tag_control').text("Stop Tagging"); showTagInstruct(); - $('#delete_tag_menu').hide(); + $('#tidypics_delete_tag_menu').hide(); $('#tidypics_image').hover( function(){ @@ -169,7 +169,7 @@ hideTagInstruct(); hideTagMenu(); - $('#tag_control').text("Tag this photo"); + $('#tidypics_tag_control').text("Tag this photo"); $('img#tidypics_image').imgAreaSelect( {hide: true, disable: true} ); @@ -197,7 +197,7 @@ _top = imgOffset.top + oCoordenates.y2; _left = imgOffset.left + oCoordenates.x2 + offsetX; - $('#tag_menu').show().css({ + $('#tidypics_tag_menu').show().css({ "top": _top + "px", "left": _left + "px" }); @@ -209,14 +209,14 @@ function hideTagMenu() { - $('#tag_menu').hide(); + $('#tidypics_tag_menu').hide(); } function showTagInstruct() { offsetY = -60; - divWidth = $('#tagging_instructions').width(); + divWidth = $('#tidypics_tag_instructions').width(); imgOffset = $('#tidypics_image').offset(); imgWidth = $('#tidypics_image').width(); offsetX = parseInt((imgWidth - divWidth)/2); @@ -224,7 +224,7 @@ _top = imgOffset.top + offsetY; _left = imgOffset.left + offsetX; - $('#tagging_instructions').show().css({ + $('#tidypics_tag_instructions').show().css({ "top": _top + "px", "left": _left + "px" }); @@ -232,7 +232,7 @@ function hideTagInstruct() { - $('#tagging_instructions').hide(); + $('#tidypics_tag_instructions').hide(); } function addTag() @@ -267,7 +267,7 @@ _top = imgOffset.top + offsetY; _left = imgOffset.left + offsetX; - $('#delete_tag_menu').show().css({ + $('#tidypics_delete_tag_menu').show().css({ "top": _top + "px", "left": _left + "px" }); @@ -284,7 +284,7 @@ function hideDeleteMenu() { - $('#delete_tag_menu').hide(); + $('#tidypics_delete_tag_menu').hide(); // restart tag hovering $('#tidypics_image').hover( diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index ec4757c2c..032388813 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -176,7 +176,7 @@ padding:0 0 5px; } /* ----------- tagging ---------------- */ -#tagging_instructions { +#tidypics_tag_instructions { background:#BBDAF7; border:1px solid #4690D6; padding:10px; @@ -188,21 +188,21 @@ position:absolute; z-index:10000; } -#tag_instruct_text { +#tidypics_tag_instruct_text { padding-top: 3px; float: left; } -#tag_instruct_button_div { +#tidypics_tag_instruct_button_div { float: left; margin-left: 15px; } -#tag_instruct_button { +#tidypics_tag_instruct_button { margin:0; } -#tag_menu { +#tidypics_tag_menu { border:1px solid #3B5999; width:200px; position:absolute; @@ -214,7 +214,7 @@ font-size:12px; text-align:left; } -#delete_tag_menu { +#tidypics_delete_tag_menu { border:1px solid #3B5999; width:200px; position:absolute; diff --git a/views/default/tidypics/image_menu.php b/views/default/tidypics/image_menu.php index 5940a0138..b4597a99f 100644 --- a/views/default/tidypics/image_menu.php +++ b/views/default/tidypics/image_menu.php @@ -19,7 +19,7 @@ // only owner and friends of owner can tag if ($viewer && $viewer->guid == $owner->guid || user_is_friend($owner->guid, $viewer->guid)) { ?> -
  • +
  • $link) { - echo "
  • {$link[0]}
  • "; + echo "
  • {$link[0]}
  • "; } ?> @@ -22,11 +22,11 @@ -
    -
    -
    +
    +
    +
    -
    +
    "; $content .= ""; - $content .= "
      "; + $content .= "
        "; $content .= "
      • {$viewer->name} (" . elgg_echo('me') . ")
      • "; if ($friends) { @@ -50,11 +50,11 @@ $content .= ""; - echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/addtag", 'body' => $content)); + echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'tidypics_phototag_form', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/addtag", 'body' => $content)); ?>
    -
    +
    '; @@ -67,10 +67,10 @@ $content .= ""; $content .= ""; - echo elgg_view('input/form', array('internalname' => 'form-deletetag', 'action' => "{$vars['url']}action/tidypics/deletetag", 'body' => $content)); + echo elgg_view('input/form', array('internalname' => 'phototag_deletetag_form', 'action' => "{$vars['url']}action/tidypics/deletetag", 'body' => $content)); } - echo '
    '; // delete_tag_menu + echo '
    '; // tidypics_delete_tag_menu echo elgg_view('js/tagging', array('photo_tags_json' => $photo_tags_json,) ); ?> \ No newline at end of file -- cgit v1.2.3