增加编辑头页面js

This commit is contained in:
sw 2015-01-15 11:05:19 +08:00
parent 20c160f03f
commit 496ef94b97
2 changed files with 4 additions and 7 deletions

View File

@ -11,10 +11,8 @@
function add_single(){$("#poll_content").append("<%= escape_javascript(render :partial => 'edit_single') %>");}
function add_mulit(){$("#poll_content").append("<%= escape_javascript(render :partial => 'edit_mulit') %>");}
//问卷头
function pollsCancel()
{
$("#polls_head").html("<%= escape_javascript(render :partial => 'show_head', :locals => {:poll => @poll}) %>");
}
function pollsCancel(){$("#polls_head").html("<%= escape_javascript(render :partial => 'show_head', :locals => {:poll => @poll}) %>");}
function pollsEdit(){$("#polls_head").html("<%= escape_javascript(render :partial => 'edit_head', :locals => {:poll => @poll}) %>");}
//单选题
function add_single_answer(doc)
{
@ -66,8 +64,7 @@
</div><!--选项 end-->
<div id="polls_head">
<%#= render :partial => 'show_head', :locals => {:poll => @poll} %>
<%= render :partial => 'edit_head', :locals => {:poll => @poll}%>
<%= render :partial => 'show_head', :locals => {:poll => @poll}%>
</div>
<div>

View File

@ -1,5 +1,5 @@
<div class="ur_page_head ur_editor02"><!--头部显示 start-->
<a href="#" class="ur_icon_edit" title="编辑"></a>
<a href="#" class="ur_icon_edit" title="编辑" onclick="pollsEdit();"></a>
<h1 class="ur_page_title">
<%= poll.polls_name%>
</h1>