From 50af2847175927bfbb311ec358326ddfc845381b Mon Sep 17 00:00:00 2001 From: mike seibel <mikes@washington.edu> Date: Mon, 20 May 2024 08:03:09 -0700 Subject: [PATCH] jshint --- endorsement/static/endorsement/js/notify.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/endorsement/static/endorsement/js/notify.js b/endorsement/static/endorsement/js/notify.js index aebd8fad..5c626a19 100644 --- a/endorsement/static/endorsement/js/notify.js +++ b/endorsement/static/endorsement/js/notify.js @@ -36,7 +36,8 @@ var Notify = (function () { div_class, fade, src = $('#notify_template').html(), - template = Handlebars.compile(src); + template = Handlebars.compile(src), + html = template({message: msg, notify_class: div_class}); if (_queue.length) { msg = _queue[0].msg; @@ -46,9 +47,7 @@ var Notify = (function () { return; } - var html = template({message: msg, notify_class: div_class}), - $notify = $(html); - + $notify = $(html); $notify.appendTo($('body')); $notify .css('top', $('.tab.active').offset().top + 'px')