From ced4e9102a0c2df9ce7f708957a2dee81594d39b Mon Sep 17 00:00:00 2001 From: chan-d Date: Fri, 5 Feb 2016 11:34:24 -0800 Subject: [PATCH 1/4] fixed issue 1 --- Gemfile | 1 + app/assets/javascripts/sidebar.js | 2 +- .../app/views/archives_sidebar/_content.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 563515183..88a2ed25c 100644 --- a/Gemfile +++ b/Gemfile @@ -73,6 +73,7 @@ gem 'recaptcha', require: 'recaptcha/rails', branch: 'rails3' gem 'rubypants', '~> 0.2.0' gem 'twitter', '~> 5.14.0' gem 'uuidtools', '~> 2.1.1' +gem 'psych', '~> 2.0', '>= 2.0.17' group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console diff --git a/app/assets/javascripts/sidebar.js b/app/assets/javascripts/sidebar.js index 548bb6471..2ac26bec5 100644 --- a/app/assets/javascripts/sidebar.js +++ b/app/assets/javascripts/sidebar.js @@ -11,7 +11,7 @@ var bind_sortable = function() { url: '/admin/sidebar/sortable', statusCode: { 200: function(data, textStatus, jqXHR) { - $('#sidebar-config').replaceWith(data.html); + $('#sidebar_config').replaceWith(data.html); bind_sortable(); }, 500: function(jqXHR, textStatus, errorThrown) { diff --git a/lib/archives_sidebar/app/views/archives_sidebar/_content.html.erb b/lib/archives_sidebar/app/views/archives_sidebar/_content.html.erb index 7d74c3347..1ea942567 100644 --- a/lib/archives_sidebar/app/views/archives_sidebar/_content.html.erb +++ b/lib/archives_sidebar/app/views/archives_sidebar/_content.html.erb @@ -1,6 +1,6 @@ <% unless sidebar.archives.blank? %> - -