Skip to content

Commit

Permalink
Merge pull request #18696 from colemanw/btnNoConflict
Browse files Browse the repository at this point in the history
Greenwich - fix conflict btw bootstrap & jQuery UI button
  • Loading branch information
eileenmcnaughton authored Oct 7, 2020
2 parents a6e5f04 + c99c68b commit f50dbca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/greenwich/greenwich.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function greenwich_civicrm_alterBundle(CRM_Core_Resources_Bundle $bundle) {
$bundle->addScriptFile('greenwich', 'extern/bootstrap3/assets/javascripts/bootstrap.min.js', [
'translate' => FALSE,
]);
$bundle->addScriptFile('greenwich', 'js/noConflict.js', [
'translate' => FALSE,
]);
break;
}
}
4 changes: 4 additions & 0 deletions ext/greenwich/js/noConflict.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// https://civicrm.org/licensing
(function($) {
$.fn.button.noConflict();
})(jQuery);

0 comments on commit f50dbca

Please sign in to comment.