|
|
|
@ -25,9 +25,9 @@
|
|
|
|
|
:onchange => "attachment_contenttypes_searchex(this.value)" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div id="upload_file_div" class="relation_file_div hidden">
|
|
|
|
|
<%= render :partial => 'new', locals: {project: @project} %>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="upload_file_div" class="relation_file_div hidden">
|
|
|
|
|
<%= render :partial => 'new', locals: {project: @project} %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="relation_file_div" class="relation_file_div hidden">
|
|
|
|
|
<fieldset>
|
|
|
|
@ -114,7 +114,7 @@
|
|
|
|
|
;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function eval_ajax (xhr, textStatus) {
|
|
|
|
|
function eval_ajax(xhr, textStatus) {
|
|
|
|
|
if (textStatus == 'success') {
|
|
|
|
|
eval(xhr.responseText);
|
|
|
|
|
} else if (textStatus == 'error') {
|
|
|
|
@ -128,7 +128,7 @@
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {
|
|
|
|
|
type: encodeURIComponent(value),
|
|
|
|
|
contentType:$('#attach_sufix_browse').val()
|
|
|
|
|
contentType: $('#attach_sufix_browse').val()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).complete(eval_ajax);
|
|
|
|
@ -179,8 +179,8 @@
|
|
|
|
|
contentType: $('#attach_sufix_browse').val()
|
|
|
|
|
}
|
|
|
|
|
}).error(function () {
|
|
|
|
|
alert('error');
|
|
|
|
|
});
|
|
|
|
|
alert('error');
|
|
|
|
|
});
|
|
|
|
|
} else if (textStatus == 'error') {
|
|
|
|
|
alert('An error has occurred');
|
|
|
|
|
}
|
|
|
|
@ -190,22 +190,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
function tagAddClick(divid,objId,objTag)
|
|
|
|
|
{
|
|
|
|
|
function tagAddClick(divid, objId, objTag) {
|
|
|
|
|
alert("OK");
|
|
|
|
|
$.ajax({
|
|
|
|
|
type :"POST",
|
|
|
|
|
url :'/users/tag_saveEx',
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/users/tag_saveEx',
|
|
|
|
|
data: {
|
|
|
|
|
tagname: $('tag_name').value,
|
|
|
|
|
obj_id: encodeURIComponent(objId),
|
|
|
|
|
obj_flag:encodeURIComponent(objTag)
|
|
|
|
|
obj_flag: encodeURIComponent(objTag)
|
|
|
|
|
},
|
|
|
|
|
success: function(data, textStatus){
|
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
|
alert("OK");
|
|
|
|
|
$(divid).empty();
|
|
|
|
|
$(divid).html('123');
|
|
|
|
|
$("#" + divid + " #name").val("");
|
|
|
|
|
$("#" + divid + " #name").val("");
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|