js/foundation/foundation.tooltips.js in zurb-foundation-4.3.1 vs js/foundation/foundation.tooltips.js in zurb-foundation-4.3.2

- old
+ new

@@ -4,16 +4,17 @@ 'use strict'; Foundation.libs.tooltips = { name : 'tooltips', - version : '4.2.2', + version : '4.3.2', settings : { selector : '.has-tip', additionalInheritableClasses : [], tooltipClass : '.tooltip', + touchCloseText: 'tap to close', appendTo: 'body', 'disable-for-touch': false, tipTemplate : function (selector, content) { return '<span data-selector="' + selector + '" class="' + Foundation.libs.tooltips.settings.tooltipClass.substring(1) @@ -108,10 +109,10 @@ var $tip = $(this.settings.tipTemplate(this.selector($target), $('<div></div>').html($target.attr('title')).html())), classes = this.inheritable_classes($target); $tip.addClass(classes).appendTo(this.settings.appendTo); if (Modernizr.touch) { - $tip.append('<span class="tap-to-close">tap to close </span>'); + $tip.append('<span class="tap-to-close">'+this.settings.touchCloseText+'</span>'); } $target.removeAttr('title').attr('title',''); this.show($target); }, \ No newline at end of file