diff --git a/js/bootstrap-toggle.js b/js/bootstrap-toggle.js index 533914e..803add4 100644 --- a/js/bootstrap-toggle.js +++ b/js/bootstrap-toggle.js @@ -46,6 +46,11 @@ } Toggle.prototype.render = function () { + if(this.$element.nextAll().last().is('div.toggle-group')) { + var parentElement = this.$element.parent(); + this.$element.insertBefore(parentElement); + parentElement.remove(); + } this._onstyle = 'btn-' + this.options.onstyle this._offstyle = 'btn-' + this.options.offstyle var size = this.options.size === 'large' ? 'btn-lg'