From 1bfa822f0bf0b6ff968e229528057da299414457 Mon Sep 17 00:00:00 2001 From: radhika Date: Thu, 17 Jul 2014 20:50:18 -0400 Subject: [PATCH] 3138: add wiselinks gem --- apps/workbench/Gemfile | 1 + apps/workbench/Gemfile.lock | 2 ++ apps/workbench/app/assets/javascripts/application.js | 6 ++++++ apps/workbench/app/views/layouts/application.html.erb | 4 ++-- apps/workbench/app/views/users/welcome.html.erb | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/workbench/Gemfile b/apps/workbench/Gemfile index 754d5c6043..f428bc2667 100644 --- a/apps/workbench/Gemfile +++ b/apps/workbench/Gemfile @@ -49,6 +49,7 @@ gem 'bootstrap-x-editable-rails' gem 'less' gem 'less-rails' +gem 'wiselinks' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' diff --git a/apps/workbench/Gemfile.lock b/apps/workbench/Gemfile.lock index 173be13cc3..3c30bc3ec4 100644 --- a/apps/workbench/Gemfile.lock +++ b/apps/workbench/Gemfile.lock @@ -183,6 +183,7 @@ GEM json (>= 1.8.0) websocket (1.0.7) websocket-driver (0.3.2) + wiselinks (1.2.1) xpath (2.0.0) nokogiri (~> 1.3) @@ -219,3 +220,4 @@ DEPENDENCIES themes_for_rails! therubyracer uglifier (>= 1.0.3) + wiselinks diff --git a/apps/workbench/app/assets/javascripts/application.js b/apps/workbench/app/assets/javascripts/application.js index d21c4b5625..0397850e14 100644 --- a/apps/workbench/app/assets/javascripts/application.js +++ b/apps/workbench/app/assets/javascripts/application.js @@ -21,6 +21,7 @@ //= require bootstrap/modal //= require bootstrap/button //= require bootstrap3-editable/bootstrap-editable +//= require wiselinks //= require_tree . jQuery(function($){ @@ -177,4 +178,9 @@ jQuery(function($){ fixer.duplicateTheadTr(); fixer.fixThead(); }); + + $(document).ready(function() { + window.wiselinks = new Wiselinks($('#top-nav-wrapper')); + }); + }); diff --git a/apps/workbench/app/views/layouts/application.html.erb b/apps/workbench/app/views/layouts/application.html.erb index 63de6c267e..ad877e7bd3 100644 --- a/apps/workbench/app/views/layouts/application.html.erb +++ b/apps/workbench/app/views/layouts/application.html.erb @@ -43,7 +43,7 @@ -
+