equal
deleted
inserted
replaced
7 jQuery.bwsTooltip = function( pointer_options ) { |
7 jQuery.bwsTooltip = function( pointer_options ) { |
8 var pointer_buttons = pointer_options['buttons']; |
8 var pointer_buttons = pointer_options['buttons']; |
9 /* extend pointer options - add close button */ |
9 /* extend pointer options - add close button */ |
10 pointer_options = $.extend( pointer_options, { |
10 pointer_options = $.extend( pointer_options, { |
11 buttons: function(event, t) { |
11 buttons: function(event, t) { |
12 var button; |
12 var button = ''; |
13 /* check and add dismiss-type buttons */ |
13 /* check and add dismiss-type buttons */ |
14 for ( var but in pointer_buttons ) { |
14 for ( var but in pointer_buttons ) { |
15 if ( typeof pointer_buttons[ but ]['type'] != 'undefined' && pointer_buttons[ but ]['type'] == 'dismiss' && typeof pointer_buttons[ but ]['text'] != 'undefined' && pointer_buttons[ but ]['text'] != '' ) { |
15 if ( typeof pointer_buttons[ but ]['type'] != 'undefined' && pointer_buttons[ but ]['type'] == 'dismiss' && typeof pointer_buttons[ but ]['text'] != 'undefined' && pointer_buttons[ but ]['text'] != '' ) { |
16 button += '<a style="margin:0px 5px 2px;" class="button-secondary">' + pointer_buttons[ but ]['text'] + '</a>'; |
16 button += '<a style="margin:0px 5px 2px;" class="button-secondary">' + pointer_buttons[ but ]['text'] + '</a>'; |
17 } |
17 } |