From 15b26b8b2af028ea30dc34f78ed5c6f3fcb0d547 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 5 Sep 2016 23:43:35 +0200 Subject: Suggest new verbs --- public/js/alerts.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 public/js/alerts.js (limited to 'public/js/alerts.js') diff --git a/public/js/alerts.js b/public/js/alerts.js new file mode 100644 index 0000000..c1763ed --- /dev/null +++ b/public/js/alerts.js @@ -0,0 +1,11 @@ +$.fn.addAlert = function (kind, message) { + var box = ''; + + $(this).find('.alerts').append($(box)); +} + +$.fn.clearAlerts = function () { + $(this).find('.alerts').html(''); +} -- cgit v1.2.3