hide clicky boxes when in read only mode

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@118 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-02 07:17:04 +00:00
parent 17482f0156
commit b0b9dea1f2
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ before_closes['taggedContentDialog'] = function(){
<% end -%> <% end -%>
<div id="image_block_container" class="centered"> <div id="image_block_container" class="centered">
<div id="image_block" onclick='set_coordinates(event);'> <div id="image_block"<% unless((read_only ||= false)) -%> onclick='set_coordinates(event);'<% end -%>>
<div id="image_tag_box" style="display: none;"><div id="inner_image_tag_box"></div></div> <div id="image_tag_box" style="display: none;"><div id="inner_image_tag_box"></div></div>
</div> </div>
<br /> <br />
<div id="tag_images"> <div id="tag_images">
<%= render :partial => 'tag_images/tag_images', :locals => { :read_only => (read_only ||= false) } %> <%= render :partial => 'tag_images/tag_images', :locals => { :read_only => read_only } %>
</div> </div>
</div> </div>