diff --git a/app/assets/javascripts/desktop/journal_pages.js.erb b/app/assets/javascripts/desktop/journal_pages.js.erb index f0d74f1f..4e24c545 100644 --- a/app/assets/javascripts/desktop/journal_pages.js.erb +++ b/app/assets/javascripts/desktop/journal_pages.js.erb @@ -262,7 +262,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // main: '.tinycanvas', fill: '.s_grid_con' }) - $("a.bt-edit").click(function(){ + $("div[container=true]").unbind(".editcoauthor").on("click.editcoauthor", "a.bt-edit", function(){ $.ajax({ url : $(this).attr("href"), type : "get", @@ -281,6 +281,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // return false; }) $("div[container=true]").unbind(".delete").on("click.delete","a.bt-delete",function(){ + var delurl = $(this).attr("href"); var parent = $(this).parent().parent(); o.confirm({ @@ -345,7 +346,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // this.initializeJournalPapers.coauthorRelationForm = function(data){ if(data.success){ o.notify(data.msg,"success"); - $("#co_author_relation_table tbody").prepend(data.newvalue); + $("#co_author_relation_table tbody").html(data.newvalue); }else{ o.notify(data.msg,"alert"); } diff --git a/app/assets/javascripts/orbitdesktopAPI.js b/app/assets/javascripts/orbitdesktopAPI.js index 57065c4d..66308860 100644 --- a/app/assets/javascripts/orbitdesktopAPI.js +++ b/app/assets/javascripts/orbitdesktopAPI.js @@ -26,7 +26,7 @@ var orbitDesktopAPI = function(){ break; } $notify.find("img#note_img").attr("src",o.notifyImgPath+img); - $notify.find(".note_message").text(msg); + $notify.find(".note_message").html(msg); n_height = $notify.outerHeight(); if(!time)time=5000; else time=time*1000; $notify