From f227e55c4f51a5cd81ffd95dd333c93d691c035c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 3 Dec 2012 17:52:05 +0800 Subject: [PATCH] stupid bug fixed --- app/assets/javascripts/desktop/journal_pages.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/desktop/journal_pages.js.erb b/app/assets/javascripts/desktop/journal_pages.js.erb index 4b7f0e00..4af5715c 100644 --- a/app/assets/javascripts/desktop/journal_pages.js.erb +++ b/app/assets/javascripts/desktop/journal_pages.js.erb @@ -304,7 +304,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // }) return false; }) - $("a.bt-new-type").click(function(){ + $("div[container=true]").unbind(".new_type").on("click.new_type","a.bt-new-type",function(){ $.ajax({ url : $(this).attr("href"), type : "get", @@ -322,7 +322,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // }) return false; }) - $("a.bt-co-author").click(function(){ + $("div[container=true]").unbind(".bt-co-author").on("click.bt-co-author","a.bt-co-author",function(){ $.ajax({ url : $(this).attr("href"), type : "get",