From c30945da66174b1c1d7bf38637cefe4ca894d4ab Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 20 Sep 2017 14:29:06 +0200 Subject: [PATCH] fixe la definition de la fonction --- Yavsc/wwwroot/js/site.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Yavsc/wwwroot/js/site.js b/Yavsc/wwwroot/js/site.js index 38c56e34..b3e7b2b5 100755 --- a/Yavsc/wwwroot/js/site.js +++ b/Yavsc/wwwroot/js/site.js @@ -1,9 +1,8 @@ -+(function($) { - function notifClick(nid) { - if (nid > 0) {  - $.get('/api/dimiss/click/' + nid).done(function() {}) - .fail(function() {}) - .always(function() {}); - } - } -})(jQuery); \ No newline at end of file +var notifClick = + function(nid) { + if (nid > 0) { + $.get('/api/dimiss/click/' + nid).done(function() {}) + .fail(function() {}) + .always(function() {}); + } + }; \ No newline at end of file