coauthor edit and destroy fixed
This commit is contained in:
1 parent
a0fc2caaf6
commit
7d865a65e2
4 files changed
+52
-4
No files matched your search
@@ -263,6 +263,47 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||
main: '.tinycanvas',
|
||||
fill: '.s_grid_con'
|
||||
})
|
||||
$("a.bt-edit").click(function(){
|
||||
$.ajax({
|
||||
url : $(this).attr("href"),
|
||||
type : "get",
|
||||
success : function(data){
|
||||
var prev_data = $("div[container=true]").html();
|
||||
$("div[container=true]").html(data);
|
||||
o.tinyscrollbar_ext({
|
||||
main: '.tinycanvas',
|
||||
fill: '.s_grid_con'
|
||||
})
|
||||
$(".bt-cancel").click(function(){
|
||||
$("div[container=true]").html(prev_data);
|
||||
})
|
||||
}
|
||||
})
|
||||
return false;
|
||||
})
|
||||
$("a.bt-delete").click(function(){
|
||||
var delurl = $(this).attr("href");
|
||||
var parent = $(this).parent().parent();
|
||||
o.confirm({
|
||||
buttons : ["Yes","No"],
|
||||
highlighted : 2,
|
||||
message : "Are you sure, you want to delete this author?"
|
||||
},function(value){
|
||||
if(value){
|
||||
$.ajax({
|
||||
url : delurl,
|
||||
type : "DELETE",
|
||||
success : function(data){
|
||||
if(data.success){
|
||||
parent.hide("slide",function(){parent.remove();});
|
||||
o.notify(data.msg,"success");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
return false;
|
||||
})
|
||||
}
|
||||
bindHandlers();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user