Sha256: d5f2ac019b0ee37205dcac37a0ea264de61271d7575c569bd29813eb4509049f
Contents?: true
Size: 683 Bytes
Versions: 11
Compression:
Stored size: 683 Bytes
Contents
if ($.noty) { $.noty.defaults = { ...$.noty.defaults, layout: "topRight", animateOpen: { opacity: "show" }, closeWith: ["hover"] }; } if (Noty) { Noty.overrideDefaults({ layout: "topRight", theme: "bootstrap-v4", closeWith: ["click"], callbacks: { // new Noty removed closeWith: 'hover', so this adds it back onHover: function() { if (this.options.closeWith.indexOf("hover") != -1) { this.close(); } } } }); } const showSuccessNoty = text => new Noty({ text, type: "success", timeout: 3000 }).show(); const showErrorNoty = text => new Noty({ text, type: "error", timeout: false }).show();
Version data entries
11 entries across 11 versions & 1 rubygems