From 601e252074eedf89de9cb080db9c463a4b67ba77 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 27 Aug 2012 20:58:51 -0700 Subject: fix for #4761 --- js/bootstrap-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/bootstrap-button.js') diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js index 702198f6d..a0ab0bfad 100644 --- a/js/bootstrap-button.js +++ b/js/bootstrap-button.js @@ -51,7 +51,7 @@ } Button.prototype.toggle = function () { - var $parent = this.$element.parent('[data-toggle="buttons-radio"]') + var $parent = this.$element.closest('[data-toggle="buttons-radio"]') $parent && $parent .find('.active') -- cgit v1.2.3