新建项目如果描述为空的时候显示怪异
This commit is contained in:
parent
7fbfeef8f3
commit
f15d00f0bd
|
@ -58,7 +58,7 @@
|
|||
<% name = name%>
|
||||
|
||||
<%= form_tag({controller: :welcome, action: :search },:class=>'navHomepageSearchBox', method: :get) do %>
|
||||
<input type="text" name="q" value="<%= name.nil? ? "" : name%>" id="navHomepageSearchInput" class="navHomepageSearchInput" placeholder="请输入关键词搜索" style="width: 300px" />
|
||||
<input type="text" name="q" value="<%= name.nil? ? "" : name %>" id="navHomepageSearchInput" class="navHomepageSearchInput" placeholder="请输入关键词搜索" style="width: 300px" />
|
||||
<input type="hidden" name="search_type" id="type" value="all"/>
|
||||
<input type="text" style="display: none;"/>
|
||||
<a href="javascript:void(0);" class="homepageSearchIcon" onclick="search_in_header($(this));"></a>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div id="project_invite_code"><%= render :partial => 'projects/invite_code' %></div>
|
||||
<div id="project_description_code" style="padding: 0 15px 10px 15px;font-size: 14px;">
|
||||
<% if @project.description.blank? %>
|
||||
<p style="padding-top:5px"><%= @project.name %></p>
|
||||
<p style="padding-top:5px;font-size:20px;font-weight:bold;"><%= @project.name %></p>
|
||||
<% else %>
|
||||
<p style="padding-top:5px"><%= h @project.description.html_safe %></p>
|
||||
<% end %>
|
||||
|
|
|
@ -4795,7 +4795,8 @@ function _bindFocusEvent() {
|
|||
}
|
||||
}).blur(function(e) {
|
||||
if(self.isEmpty()) {
|
||||
self.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>" + self.placeholder + "</span>");
|
||||
self.edit.html(self.placeholder);
|
||||
// self.edit.html("<span id='hint' style='color:#999999;font-size:12px;'>" + self.placeholder + "</span>");
|
||||
}
|
||||
if (self.afterBlur) {
|
||||
self.afterBlur.call(self, e);
|
||||
|
|
Loading…
Reference in New Issue