made a few more detaily fixes
This commit is contained in:
parent
4ea435dfee
commit
9f9061d908
3 changed files with 13 additions and 4 deletions
|
@ -548,8 +548,7 @@ function onCreateLabelHandler(domElement, node) {
|
|||
data-url="/topics/$_id_$" \
|
||||
data-object="topic" \
|
||||
data-attribute="name" \
|
||||
data-type="input"> \
|
||||
$_name_$</span> \
|
||||
data-type="input">$_name_$</span> \
|
||||
<a href="/topics/$_id_$" target="_blank"> \
|
||||
<img class="topic-go-arrow" \
|
||||
title="Go to the topic page" \
|
||||
|
@ -564,6 +563,7 @@ function onCreateLabelHandler(domElement, node) {
|
|||
id="best_in_place_desc" \
|
||||
data-url="/topics/$_id_$" \
|
||||
data-object="topic" \
|
||||
data-nil="$_desc_nil_$" \
|
||||
data-attribute="desc" \
|
||||
data-type="textarea">$_desc_$</span> \
|
||||
</div> \
|
||||
|
@ -609,11 +609,15 @@ function onCreateLabelHandler(domElement, node) {
|
|||
html = html.replace(/\$_name_\$/g, node.name);
|
||||
html = html.replace(/\$_userid_\$/g, node.getData("userid"));
|
||||
html = html.replace(/\$_username_\$/g, node.getData("username"));
|
||||
|
||||
var desc_nil = "<span class='gray'>Click to add description.</span>";
|
||||
html = html.replace(/\$_desc_nil_\$/g, desc_nil);
|
||||
if (node.getData("desc") == "") {
|
||||
html = html.replace(/\$_desc_\$/g, '<span style="color: #cccccc">Click to add description.</span>');
|
||||
html = html.replace(/\$_desc_\$/g, desc_nil);
|
||||
} else {
|
||||
html = html.replace(/\$_desc_\$/g, node.getData("desc"));
|
||||
}
|
||||
|
||||
html = html.replace(/\$_link_\$/g, node.getData("link"));
|
||||
html = html.replace(/\$_metacode_choices_\$/g, metacode_choices);
|
||||
|
||||
|
|
|
@ -43,3 +43,7 @@ line-height: 24px;}
|
|||
height: 1em;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.gray {
|
||||
color: #999999;
|
||||
}
|
||||
|
|
|
@ -7,4 +7,5 @@
|
|||
<div class="desc"><p><%=topic.desc %></p></div>
|
||||
</div>
|
||||
<%= link_to topic.link, topic.link, :class => 'link', :target => '_blank' %>
|
||||
<% end %>
|
||||
<%= best_in_place topic, :name, :nil => 'lol' %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue