From d334146b1b9d087e3a85b59c777d21ca84ffb8b7 Mon Sep 17 00:00:00 2001 From: Z Li Date: Fri, 26 Jun 2015 08:44:32 -1000 Subject: [PATCH] Monkey patching to address bootstrap using !important https://github.com/twbs/bootstrap/issues/9237 https://github.com/twbs/bootstrap/issues/9881 --- .../bootstrap3-editable/bootstrap-editable.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/bootstrap3-editable/bootstrap-editable.js b/app/assets/javascripts/bootstrap3-editable/bootstrap-editable.js index 551fec1..0db635e 100644 --- a/app/assets/javascripts/bootstrap3-editable/bootstrap-editable.js +++ b/app/assets/javascripts/bootstrap3-editable/bootstrap-editable.js @@ -1439,15 +1439,13 @@ Applied as jQuery method. }, innerShow: function () { - this.$element.hide(); + this.$element.addClass('hide'); this.tip().insertAfter(this.$element).show(); }, innerHide: function () { - this.$tip.hide(this.options.anim, $.proxy(function() { - this.$element.show(); - this.innerDestroy(); - }, this)); + this.$element.removeClass('hide'); + this.innerDestroy(); }, innerDestroy: function() { @@ -6804,4 +6802,4 @@ Automatically shown in inline mode. $.fn.editabletypes.datetimefield = DateTimeField; -}(window.jQuery)); \ No newline at end of file +}(window.jQuery));