|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
<%= render :partial => 'org_subfields/show_post_type'%>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
var slideHeight = 29;
|
|
|
|
|
function readmore(aNode) {
|
|
|
|
@ -58,6 +59,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function attachment_contenttypes_searchex(value) {
|
|
|
|
|
<% if @project%>
|
|
|
|
|
$.ajax({
|
|
|
|
@ -72,6 +74,8 @@
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function attachtype_edit(value) {
|
|
|
|
|
<% if @project%>
|
|
|
|
|
$.ajax({
|
|
|
|
@ -87,6 +91,62 @@
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function attachmenttypes_searchex(value) {
|
|
|
|
|
<% if @project%>
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '<%=getattachtype_project_files_path(project_id: @project)%>',
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {
|
|
|
|
|
type: encodeURIComponent(value),
|
|
|
|
|
contentType: $('#attach_sufix_browse').val()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).complete(eval_ajax);
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function course_attachmenttypes_searchex(value) {
|
|
|
|
|
<% if @course%>
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {
|
|
|
|
|
type: encodeURIComponent(value),
|
|
|
|
|
contentType: $('#attach_sufix_browse').val()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).complete(eval_ajax);
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function course_attachment_contenttypes_searchex(value) {
|
|
|
|
|
<% if @course%>
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
|
|
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {
|
|
|
|
|
type: $('#attachment_browse').val(),
|
|
|
|
|
contentType: encodeURIComponent(value)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).complete(eval_ajax);
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
function course_attachtype_edit(value) {
|
|
|
|
|
<% if @course%>
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {
|
|
|
|
|
type: $('#attachment_browse').val(),
|
|
|
|
|
contentType: encodeURIComponent(value)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).complete(eval_ajax);
|
|
|
|
|
<%end%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function attachmenttypes_change(id, type) {
|
|
|
|
|
<% if @project%>
|
|
|
|
|
$.ajax({
|
|
|
|
|