From 652c1b9f86aafec47324d313e2f11520aefa6246 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 27 Jun 2013 18:30:14 +0200 Subject: [PATCH] Add parameter to define position in tips --- src/sunstone/public/js/sunstone-util.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index c367a99a1d..6a8adc6e3c 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -601,7 +601,7 @@ function getValue(filter_str,filter_col,value_col,dataTable){ //Replaces all class"tip" divs with an information icon that //displays the tip information on mouseover. -function setupTips(context){ +function setupTips(context, position){ $('ui-dialog').css('z-index', '1000') //For each tip in this context @@ -640,8 +640,13 @@ function setupTips(context){ var obj = $(this); 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.append('');