From 55fb234e5beccd42f7319739afb060aab73047da Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 21 Jan 2015 00:27:50 +0100 Subject: [PATCH] Moved back to standard, changes not longer needed because of new online notification controller. --- .../javascripts/app/lib/bootstrap/tooltip.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/app/assets/javascripts/app/lib/bootstrap/tooltip.js b/app/assets/javascripts/app/lib/bootstrap/tooltip.js index 06277ce4c..cda147d9c 100644 --- a/app/assets/javascripts/app/lib/bootstrap/tooltip.js +++ b/app/assets/javascripts/app/lib/bootstrap/tooltip.js @@ -8,15 +8,6 @@ * ======================================================================== */ -/* - - Modified 19-01-2014 by Felix - - add tooltip height desctriction to 100% viewport height - 18px padding - line 260-263 - -*/ - +function ($) { 'use strict'; @@ -185,8 +176,8 @@ $tip .detach() - .css({ top: 0, left: 0 }) - .addClass(placement + ' is-visible') + .css({ top: 0, left: 0, display: 'block' }) + .addClass(placement) .data('bs.' + this.type, this) this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element) @@ -258,11 +249,6 @@ } }, offset), 0) - var maxHeight = $('#app').height() - 18 - if(height > maxHeight){ - $tip.height(maxHeight).addClass('is-overflowing') - } - $tip.addClass('in') // check to see if placing tip in new offset caused the tip to resize itself