|  |  | @ -1,24 +1,41 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg'%> |  |  |  | <%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg'%> | 
			
		
	
		
		
			
				
					
					|  |  |  | <script> |  |  |  | <script> | 
			
		
	
		
		
			
				
					
					|  |  |  |   function check_org_title(title) |  |  |  |     function check_org_title() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   { |  |  |  |     { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if($("#document_title").val().trim() == "") |  |  |  |         if($("#document_title").val().trim() == "") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       { |  |  |  |         { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           $("#doc_title_hint").html("<span class='c_red'>标题不能为空</span>").show(); |  |  |  |             $("#doc_title_hint").html("<span class='c_red'>标题不能为空</span>").show(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |             return false; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       else |  |  |  |         } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       { |  |  |  |         else | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           $("#doc_title_hint").hide(); |  |  |  |         { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |             $("#doc_title_hint").hide(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |             return true; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     function create_org_document() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if(check_org_title() == true) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             org_document_description_editor.sync(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             $('#new_org_document_form').submit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     function cancel_create_org_document(){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         $("#document_title").val(""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         org_document_description_editor.html(""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         org_document_description_editor.sync(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         $('#org_document_editor').hide(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         $('#doc_title_hint').hide(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | </script> |  |  |  | </script> | 
			
		
	
		
		
			
				
					
					|  |  |  | <%= form_tag organization_org_document_comments_path(:organization_id => @organization.id), :id => 'new_org_document_form' do |f| %> |  |  |  | <%= form_tag organization_org_document_comments_path(:organization_id => @organization.id, :field_id => params[:field_id]), :id => 'new_org_document_form' do |f| %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | <div class="resources"> |  |  |  | <div class="resources"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div> |  |  |  |       <div> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <textarea class="postDetailInput fl mr15" style="margin-bottom:15px;" name="org_document_comment[title]" id="document_title" style="resize:none;" onfocus = "$('#org_document_editor').show();" onblur="check_org_title();" placeholder="请输入文章标题"></textarea> |  |  |  |         <textarea class="postDetailInput fl mr15" style="margin-bottom:15px;" name="org_document_comment[title]" id="document_title" style="resize:none;" onfocus = "$('#org_document_editor').show();" onblur="check_org_title();" placeholder="请输入文章标题"></textarea> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |       </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div id="doc_title_hint"></div> |  |  |  |       <div id="doc_title_hint"></div> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div id="org_document_editor" class="mt15" style="display: none"> |  |  |  |     <div id="org_document_editor" class="mt15" > | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       <div class="mt10"> |  |  |  |       <div class="mt10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <%= kindeditor_tag 'org_document_comment[content]','', :editor_id => 'org_document_description_editor', :height => "150px" %> |  |  |  |         <%= kindeditor_tag 'org_document_comment[content]','', :editor_id => 'org_document_description_editor', :height => "150px" %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |       </div> | 
			
		
	
	
		
		
			
				
					|  |  | @ -29,7 +46,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div class="cl"></div> |  |  |  |       <div class="cl"></div> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div class="mt5"> |  |  |  |       <div class="mt5"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="org_document_description_editor.sync();$('#new_org_document_form').submit();">确定</a> |  |  |  |             <a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="create_org_document();">确定</a> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             <span class="fr mr10 mt3">或</span> |  |  |  |             <span class="fr mr10 mt3">或</span> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <a href="javascript:void(0);" onclick="$('#org_document_editor').hide(); $('#doc_title_hint').hide();" class="fr mr10 mt3">取消</a> |  |  |  |             <a href="javascript:void(0);" onclick="$('#org_document_editor').hide(); $('#doc_title_hint').hide();" class="fr mr10 mt3">取消</a> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <div class="cl"></div> |  |  |  |         <div class="cl"></div> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |