Sha256: c8c965699e31b7dcfb10c69f059df2d68a2025c39e6c78b7769c74ea92cab432
Contents?: true
Size: 480 Bytes
Versions: 21
Compression:
Stored size: 480 Bytes
Contents
;(function ($, window, undefined) { 'use strict'; $.fn.foundationAlerts = function (options) { var settings = $.extend({ callback: $.noop }, options); $(document).on("click", ".alert-box a.close", function (e) { e.preventDefault(); $(this).closest(".alert-box").fadeOut(function () { $(this).remove(); // Do something else after the alert closes settings.callback(); }); }); }; })(jQuery, this);
Version data entries
21 entries across 21 versions & 4 rubygems