wp/wp-content/plugins/portfolio/bws_menu/js/bws_tooltip.js
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
child 19 3d72ae0968f4
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     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 						}