Skip to content

Commit

Permalink
Fixes for conflicts with Sitevision
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Mar 7, 2014
1 parent b4dbc94 commit 33b5d16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/assets/javascripts/masthead_standalone.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
//= require jquery
//= require masthead_standalone_without_jquery

jQuery(document).ready(function($) {
// Steal back the BS dropdown events that SV hijacked
if ($svjq) {
window.setTimeout(function() { $("[data-toggle=dropdown]").dropdown(); }, 500);
}
});
4 changes: 3 additions & 1 deletion app/assets/javascripts/masthead_standalone_without_jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@

jQuery(document).ready(function($) {
// Steal back the BS dropdown events that SV hijacked
window.setTimeout(function() { $("[data-toggle=dropdown]").dropdown(); }, 500);
if ($svjq) {
window.setTimeout(function() { $("[data-toggle=dropdown]").dropdown(); }, 500);
}
});

0 comments on commit 33b5d16

Please sign in to comment.