diff --git a/Gemfile.lock b/Gemfile.lock index 65c9dbe8..afec15c8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,18 @@ +GIT + remote: git://github.com/amatsuda/kaminari.git + revision: 82a38e07db1ca1598c8daf073a8f6be22ae714d6 + specs: + kaminari (0.13.0) + actionpack (>= 3.0.0) + activesupport (>= 3.0.0) + +PATH + remote: vendor/impressionist + specs: + impressionist (1.1.1) + httpclient (~> 2.2) + nokogiri (~> 1.5) + GEM remote: http://rubygems.org/ specs: diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 0d809f5e..9bd7bf07 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -986,18 +986,18 @@ var orbitDesktop = function(dom){ .addClass('op00', 500); - $("#journal_p div.toolbar ul#journal_selection_options a").click(function(){ + $("#journal_selection_options a").click(function(){ switch($(this).attr("href")){ case "all": - $("#journal_p div#paper_list a.item_check_status").addClass("checked"); + $(".list_item_action > .icon-check-empty").switchClass("icon-check-empty","icon-check",0); break; case "none": - $("#journal_p div#paper_list a.item_check_status").removeClass("checked"); + $(".list_item_action > .icon-check").switchClass("icon-check","icon-check-empty",0); break; } return false; }) - $("#journal_p div.toolbar ul#journal_view_selection a").click(function(){ + $("#journal_view_selection a").click(function(){ switch($(this).attr("href")){ case "journal": journalview(); @@ -1018,11 +1018,13 @@ var orbitDesktop = function(dom){ var bindSecondaryHandlers = function(){ $("#journal_p div#paper_list a").click(function(){ - if($(this).hasClass("item_check_status")){ - $(this).toggleClass("checked"); - }else if($(this).hasClass("icon-star")){ + if($(this).hasClass("icon-check-empty")){ + $(this).switchClass("icon-check-empty","icon-check",0); + } else if($(this).hasClass("icon-check")) { + $(this).switchClass("icon-check","icon-check-empty",0); + } else if($(this).hasClass("icon-star")){ $(this).removeClass("icon-star").addClass("icon-star-empty"); - }else if($(this).hasClass("icon-star-empty")){ + } else if($(this).hasClass("icon-star-empty")){ $(this).removeClass("icon-star-empty").addClass("icon-star"); } return false; @@ -1036,7 +1038,7 @@ var orbitDesktop = function(dom){ li; $.each(journalData,function(i,journal){ $.each(journal.papers,function(j,paper){ - li = $('