edit coauthor relation done

This commit is contained in:
harrybomrah authored and chris committed 2012-12-06 07:59:44 +08:00
1 parent 4681f0ee36
commit 3d1fb48489
5 files changed
+33 -9

No files matched your search

@@ -280,6 +280,21 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
})
return false;
})
$("div[container=true]").unbind(".editype").on("click.edittype", "a.bt-edit-type", function(){
var parent = $(this).parent().parent();
$.ajax({
url : $(this).attr("href"),
type : "get",
success : function(data){
var prev_data = parent.find("td.form_space").html();
parent.find("td.form_space").html(data);
$(".bt-cancel-type").click(function(){
parent.find("td.form_space").html(prev_data);
})
}
})
return false;
})
$("div[container=true]").unbind(".delete").on("click.delete","a.bt-delete",function(){
var delurl = $(this).attr("href");
@@ -351,4 +366,12 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
o.notify(data.msg,"alert");
}
}
this.initializeJournalPapers.coauthorRelationEditForm = function(data){
if(data.success){
o.notify(data.msg,"success");
$("#co_author_relation_table tbody").html(data.newvalue);
}else{
o.notify(data.msg,"alert");
}
}
};