diff --git a/src/sunstone/public/app/utils/tips.js b/src/sunstone/public/app/utils/tips.js index 616db6f00ed..ce6a51f9557 100644 --- a/src/sunstone/public/app/utils/tips.js +++ b/src/sunstone/public/app/utils/tips.js @@ -14,8 +14,7 @@ /* limitations under the License. */ /* -------------------------------------------------------------------------- */ -define(function(require) { -// require('foundation.tooltip'); +define(function(require) { //Replaces all class"tip" divs with an information icon that //displays the tip information on mouseover. var _setup = function(context, position) { @@ -31,21 +30,16 @@ define(function(require) { obj.removeClass('tip'); var tip = obj.html(); - var tip_classes = ['has-tip'] - if (position) { - tip_classes.push(position) - } - //replace the text with an icon and spans - //obj.html(''); - obj.html(''); + obj.html(_html(tip)); }); - - Foundation.reflow(context, 'tooltip'); } - var _html = function(str) { - //return '' - return ''; + var _html = function(tip) { + var html = '